Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
This blog post is part of the SAP Intelligent RPA 2.0 Best Practices Series.

This blog post explains Outlook features in SAP Intelligent RPA 2.0 using Low Code/No Code approach.

 

For latest updates on the Outlook please refer to the store sample.

Functionalities covered in the Blog Post


 

1.Search Emails.

2.Read the Email Content (Get Subject, Get Body, Get Sender)

3.Download the email attachments and save them in the specified location.

4.Using Logic Controls (Forever, Each)

 

1.Add dependencies to the Project


      To access the Outlook Activities, make sure to add Outlook SDK as a dependency to the project.


      Repeat the steps to add the core library.


Once the dependency is added, You can view the Outlook SDK under Dependencies TAB.


 


 

2.Create an Automation


SAP Intelligent RPA 2.0  has features available in the Cloud Studio to create automation.



 

 

3.Explore Outlook Activities and Logic/Controls


 

Step 1: Activity-Open Outlook instance


Initializes the Outlook Instance.

Step 2: Activity -Search Email


Search the mails with the specified criteria.

Step 3: Activity -Get Number of Email Items in Context


Gets the number of mails available in the Context which satisfies the Search Condition

Step 4: Activity -Log


Displays  the number of emails

Step1-Step4



 

 



 

 

Step 5: Activity -Forever.


Use the Logic Control Forever to read the Email content of all the emails.

Step 6: Activity-Is Context Current Email Not Exist.


Activity retrieves false if there is no email in the context.

Step7:   Logic/Controls-Condition.


Condition is mapped to the output parameter isContextCurrentEmailNotExist.

Step8-Activity-Log


Displays the message “Emails not found”

Step 10-Step 16 -Activities Get Subject, Get Sender, Get Body and Log


Activities to read and print the Subject, Sender and Body.

Step 18-Activity-Save All Attachments


Saves all the attachments to the specified path.

Step 19-Logic/Controls-For Each


Loops through the attachments.

Map the Looping List to the output parameter of Step 18.

 


 

Step 20-Activity Log


Displays the Attachment Name

Step 21-Activity-Get Next Email Item in Context


Reads the Next Email Item.

Step 22-Activity Log


Step 23-Release Outlook Instance


Releases the Outlook Instance

Step 24-Activity -Open Message Dialogue


Opens a Message Dialog. Different types of templates are available.

 


 

Recording of the steps from 5-24

 



 

 

 

Complete Workflow



 

 

Save and Deploy the Project.

 

Test Results:


Click on Test Button to view the output.

The BOT would read all the emails matching the selection criteria, Reads the Subject, Email Content, and saves the attachments in the specified location.

Test Results


 

 



 

Further information links


Find more information on SAP Intelligent RPA:


Exchange knowledge: SAP Community | Q&A | Blog

Learn more: Webinars | Help Portal | openSAP

Explore: Product Information | Successful Use Cases

Try SAP Intelligent RPA for Free: Trial Version | Pre-built Bots

Follow us on: LinkedInTwitter and YouTube

 

 
21 Comments