(RPA) - Using The Microsoft Office 365 Activity For Sending Emails in UiPath - The JPanda
(RPA) - Using The Microsoft Office 365 Activity For Sending Emails in UiPath - The JPanda
The JPanda
All Things Automation et al.
This post will assist in using the Microsoft Office 365 Activity, specifically for sending
emails with attachments, in UiPath.
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 1/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
Deep Dive
Let’s dive deeper into the steps listed above.
Select App registrations and then search for your application. Click on your
application when it appears.
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 2/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
Copy the Application ID and the Tenant ID and keep it for later use, when
configuring the Microsoft Office 365 Scope:
Now that we have our info from Azure, let’s get started in UiPath.
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 3/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
Now that we have the library installed, we can wire our process up to use the MS
O365 capability.
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 4/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
In the activity pane, find the “Send Mail” activity (Integrations > Office 365 >
Outlook) and drag it into the Microsoft Office 365 Scope:
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 5/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
Since the Send Mail activity accepts the attachments collection as the
IEnumerable<String> type, the attachments variable needs to be converted from an
array of string to an IEnumerable of string. This can be done by grabbing another
“Assign” activity and using it to assign a new variable, named
attachmentEnumerable (of type IEnumerable<String>) to
attachments.AsEnumerable().
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 6/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 7/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
And that’s it folks! Give it a run and feel free to drop a comment about how it turns
out.
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 8/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
If you have any questions, issues or feedback, drop a comment below or reach out to
[email protected]
Share this:
Twitter Facebook
Like
Be the first to like this.
Related
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 9/10
15/02/2021 [RPA]: Using The Microsoft Office 365 Activity For Sending Emails in UiPath – The JPanda
ajit nayak
October 31, 2020 at 10:06 am
Like
Reply
Jacqui Muller
November 26, 2020 at 5:41 am
Hi ajit. Not yet. Is there a speci c use case? I’d be more than happy to create a post
for it.
Like
Reply
Leave a Reply
Enter your comment here...
https://thejpanda.com/2020/01/27/rpa-using-the-microsoft-office-365-activity-for-sending-emails-in-uipath/ 10/10