cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tludwig
Advocate I
Advocate I

Appending Sharepoint List Attachments to an array

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

snip1.PNG

snip2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

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:

64.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
ScottShearer
Super User
Super User

@tludwig 

Can you expand your Get Attachment Content action and post a screen shot?

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

@ScottShearer Here you go. Thanks for your help.

snip3.PNG

v-bacao-msft
Community Support
Community Support

 

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:

64.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,299)