I have a flow.
When a new item is created or modified in sharepoint list, e email is sent to a certain Manager with certain details and any files are also then attached to the email.
The flow works but when the Manager opens to attachment it isnt correct. The flow and the message within in the attchment below.
It used to work, so I have obviusly chnaged something in error!
The error message:
Any help would be much appreciated.
Hi @sclarke23
Because Get Attachments (body) returns an Array, that when you loop through it, you would see the Dynamic stuff, when inside the Apply to Each
What is normally done, is you do Get Attachments, Apply to each, and then You have an array variable that you keep adding the attachments too.
Then in your Attachments for emails etc you have to iterate through and put them all there.
If you know for sure there is only one, then you could use the Ordinal position of the Get Attachments body Array which would be [0] to grab only that one Attachment (Content Bytes)
If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
Hi,
I had got to the point i knew it was this bit was incorrect. When going to the dynamic content the only option available for body is get attachments. There is no option for body get attachment content. I am not sure why it is not appearing?
Hi @sclarke23
Hi I think its here
I dont think body points to the actual content, i think the content is inside the body. please review the Body itself to get the Content
If you like my answer, I would really appreciate if you please Mark it as Resolved, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey
WarrenBelz
146,658
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional