Hello all!
What I am trying to achieve is the following:
- get a specific attachment from an item in a SharePoint list (the item will at most have two attachments, but it's not always going to be two - the item is exclusively going to be a PDF file)
- Take that attachment > place it into an array
- That array already has a file in it that we got from a SharePoint library previously in the same flow
- Attach those files into an email for the recipient to open
I am mostly having issues with getting a specific attachment within the item. I had this idea of looping through the attachments column in the item and using a check condition based on it's DisplayName as I have captured the attachments name in a previous flow. Kinda looks like this:
If true, it attempts to get the attachment content and then we try and place it into the array:
ContentBytes = body('Get_attachment_content')['$content']
The name has been grabbed from the item itself - a column where we previously captured the name of the file already which includes the file extension
I'm just not too confident on the syntax of the Set Variable module. Trying to append it to the array gives me this error:
What am I doing wrong here? Please help me 😞
If you need any additional information, please let me know

Report
All responses (
Answers (