How to send dynamic attachments in a email using Power Automate

 We can send documents get from SharePoint or other sources and send as attachments in email. In my case, I need to get the SharePoint document based on the id and convert to PDF. Once we convert to PDF, need to send the PDF document as attachment in a email.

To get the SharePoint document, I have used Get File Content method to get the file content.


Once we get the content, Using One drive convert method, convert the file to PDF. (before conversion, we need to create same file in One drive using Create File Method).


Once we get the file content, we can send the file as attachment in the attachment section as sown below.


We can also pass the JSON instead of passing the attachments. We can use this option if we have the array configured already. 



Comments

Popular posts from this blog

Linksys Wireless Connection Failure

The security validation for this page is invalid. Click Back in your Web

Power Apps toPower Automate Error - The input body for trigger 'manual' of type 'Request' did not match its schema definition , the input String does not validate against the date