on ‎2025 Mar 28 2:59 AM
Hi all,
In sap build process automation workflow, I used DMS to upload files.
Also, I used email notification for user alert.
And, I would like to attach the uploaded file from BPA workflow to email that can be able to download the files from users.
Is it possible to do so?
If yes, how can I develop that kind of setting?
Best Regards,
Aye Chan
Request clarification before answering.
To attach uploaded files from SAP Build Process Automation to an email, you can follow these best practices and steps:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ayechan ,
If you are able to access the file in your process, then there are two ways, that I can think of to send the file through email:
1. Create an automation in the same project as your process workflow and call the automation as a notification step in between your process workflow. Within the automation, pass the dms file id and the dms destination. Using the dms destination and file id, create a copy of the file in the local system. Then use Outlook SDK to send the file to intended recipients.
2. You can create an automation in a different project, and then using API calls, access the specific instance of the workflow and extract DMS file id. Follow similar steps as mentioned in step 1.
Do let me know in case you wish for more information.
Best Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @rohit_singhal;,
Thanks for the explanation.
And do you have any practice blog for the two ways you mentioned?
Hi @rohit_singhal,
Using the approach of creating automation you mentioned will need to cost extra fee for attendant or unattendant mode of desktop agent?
Hi @ayechan ,
You can check following automation from BPA store
Invoice Processing with Document Management Service
They have given sample automation for downloading the file from DMS, you can modify it as per your requirement and use it.
or
There are also DMS activities available in automation that you can use.
https://help.sap.com/doc/77f2293985d7420aabecc0c8d0647e46/Cloud/en-US/modules/dms.html#select
You can also check following blog for more info. -- A Comprehensive Guide to Downloading Files in SAP Build Process Automation and Utilizing BTP DMS in SAP Build Process Automation automations and forms
Before all this you need to create DMS destination in BTP subaccount, you can refer following link -- DMS destination
After downloading the file from the DMS to your server, you can attach it to an Outlook email using the 'Send Email' activity. Alternatively, you can use Python to send the email via SMTP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can't upload files directly to the email notification in the process flow. for such kind of thing you will need to create separate automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @manish_09,
could you please guide me how can I create separate automation in BPA to be able to attach the uploaded file of BPA workflow to Email?
Hi @rohit_singhal,
yes, the uploaded file is able to access and download in the BPA process flow.
But I am not sure how can I attach that uploaded file to Email.
Do you have any idea on it?
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.