
Hello to all,
I am facing the following issue: I am trying to create a workflow that will automatically send emails through a shared mailbox to various clients of ours. For each of the emails, I want them to go to different folders on my PC and attach all the files that exist in the folder. (The files are pdf and excel)
I'm utilizing the "Folder\Get files in folder" action from the menu of actions. It functions flawlessly when applied in Outlook, but when attempting to use it with the "Office 365 Outlook\Send an email from a shared mailbox (V2)" action, it generates an error with the following message.
Do you have any suggestions on how to attach all the files within a folder?
Office 365 outlook works bit different from normal outlook action. In order to include file attachments in your emails, using the respective Office 365 Outlook (preview), you need to convert those files using the Convert file to binary data action and then use the variable containing the binary data to the Send and Email(v2) action, when adding a file attachment.
Please refer the below guide to achieve the same.
https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/office365outlook
Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀