I'm trying to append multiple Sharepoint List attachments to an array so I can send them all in one email. I followed this tutorial. For some reason, the "ContentBytes" part of the array is null for both attachments so the send email action fails. Any suggestions? Thanks
Solved! Go to Solution.
Hi @tludwig ,
The file identifier displayed in the body of the Get attachment content action seems a bit strange.
In general, the end should be the same as the file name, can you share the specific configuration of each action?
I did a test on my side, flow can run normally, please check my configuration:
Best Regards,
Can you expand your Get Attachment Content action and post a screen shot?
Hi @tludwig ,
The file identifier displayed in the body of the Get attachment content action seems a bit strange.
In general, the end should be the same as the file name, can you share the specific configuration of each action?
I did a test on my side, flow can run normally, please check my configuration:
Best Regards,
Thanks @v-bacao-msft the file identifier in the Get Attachment Contents was wrong. I switched it to the identifier generated from the Get Attachments action and used
body('Get_attachment_contents').$content
for the expression value for ContentBytes in the Append Array action and it worked.
User | Count |
---|---|
89 | |
40 | |
21 | |
20 | |
16 |
User | Count |
---|---|
137 | |
56 | |
46 | |
36 | |
26 |