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

How to attach files from sharepoint list items to approval mail notification?

Hi everyone,

 

I have been working Approval flow mail but i am unable to attach files from sharepoint list to approval mail. Screen shots are given, Can anyone help?

Expression for "ContentBytes": body('GetAttachmentContent')?['$Content']

 

1st part1st part

Screenshot 2020-04-15 at 12.00.15 PM.pngScreenshot 2020-04-15 at 11.40.10 AM.png

1 ACCEPTED SOLUTION

Accepted Solutions

@efialttes 

Hi,

i got the solution the problem was with "ContentBytes". In Approval mail system content key is required and not contentbytes. Now my flow is working fine...

Thnx for the help!!!

View solution in original post

6 REPLIES 6
Super User III
Super User III

Hi!
So in your append to array you currently assign the DisplayName from Dynamic content menu, retrieved from “Get Attachments” action to the Name property... why don't you do the same with 'Content bytes' property and assign as its value the Attachment Content from Dynamic content menu, retrieved also from “Get Attachment Contents” action?
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi,

Actually the flow is getting terminated in condition stage only and the condition always flows through No..... Screenshot attached.

 

Screenshot 2020-04-15 at 12.40.21 PM.png

Ooops!
You are right, this seems to be the problem!
My suggestion is, to replace YES and add the following expression from dynamic content menu instead:
true

Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



HI @efialttes ... Thnx for replying..

 

The flow is working now but without any attachments... 😞

As was suggested i had even replaced ContentBytes expression with Attachment Content from Dynamic content menu, retrieved also from “Get Attachment Contents” action.... still no luck...!!

 

 

Hi!
I guess you followed the recommendations on how to add attachments to an Approval, right?
https://docs.microsoft.com/en-us/power-automate/approval-attachments
Hooe this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@efialttes 

Hi,

i got the solution the problem was with "ContentBytes". In Approval mail system content key is required and not contentbytes. Now my flow is working fine...

Thnx for the help!!!

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (12,761)