
Announcements
Hi,
I have a flow which pulls its data from a SharePoint list and sends an email. This includes a unknown number of attachments, which is achieved as outlined in https://flow.microsoft.com/en-us/blog/multiple-attachments-single-email/ . This all works great.
Now i have been asked to create a PDF document containing the data from the list and include this in the email as an attachment as well. I have got to the point where the document is created and sitting in a OneDrive location.
However i am struggling to append this new document to my array of attachments to include in the email.
Here is the way the list attachments are being added to the array,
And here is how i am attempting to add the document which sits in OneDrive,
The "Name": is coming from -Get file metadata- and the "ContentBytes": is coming from -Get file content.
When this flow runs, i get the below error on the send email card. This only happens when i try to append the new document to the array.
Lots of surfing this and other forums hasn't enlightened me, so thanks in advance if you can help!!
Hi @Tjeremiah
Try the below expression for the content bytes of your Append to array variable 6 step.