Intelligent Robotic Process Automation (iRPA) offers a powerful solution for automating mundane and repetitive tasks, allowing organizations to optimize their processes and improve overall efficiency. One such area where iRPA can be highly beneficial is the automation of mail attachment processing. In this context, iRPA can be employed to seamlessly extract, analyse, and act upon attachments received via emails.
Step 1 :
Adding Dependencies
The characteristics and content of a package can be reused by another project through the structure of a dependency. The Dependencies used here are :
Choose add a Business Process Project Dependency.
irpa_core
irpa_excel
irpa_outlook
irpa_pdf
irpa_web
irpa_sapui5
After Successfully adding dependencies,
Image 1
Step 2 :
Saving Attachments using Outlook Activity
Open the outlook instance activity.
Image 2
Utilise the search email activity to locate the specific email you are looking for and save the attachment and choose create custom data and provide folder, folder type and store domain.
Image 3
Open the is there no context action in an forever loop to verify whether the email contains the correct subject and document to be stored.
Image 4
Use the Get Mail subject(Outlook) option under Default section to get the mail's Subject.
Use Get Mail Body(Outlook) activity to access the mail's body, including any data and stored documents.
Use the Save All Mail Attachment activity to store every attachment, including any word, pdf, or other files that is contained in the email.
Get the context of the following email using the Get Next Email Context activity.
Exit the Forever Loop and close the outlook instance using Close Outlook Instance activity.
Image 5
Step 3 :
Retrieve Data from the Downloaded PDF Attachment
Using the get file collection activity, find the location of the downloaded file.
Image 6
Open the PDF using the open PDF activity, and then use the get text, get text after, Get total pages and get text before activities to obtain the data from the PDF.
Image 7
Use log message to print the information that was obtained from the extracted PDF on the console.
Image 8
close and release the pdf Using the close and release PDF activity.
Image 9
Here you can find some learning content:
https://learning.sap.com/learning-journey/create-processes-and-automations-with-sap-build-process-au...
This short blog can help you to understand basic knowledge about How to Use iRPA to Automate the Processing of Mail Attachments.
Since i am also new to writing blogs, Expert suggestions & feedbacks are much appreciated.
If you like this blog post you can follow me for more blogs i will try to make in coming future specifically related to SAP BTP Technologies.
Thank you,
Mekapothu Siva Nagireddy.