web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Send image from ShareP...
Power Apps
Unanswered

Send image from SharePoint library as attachment with Power Apps

(1) ShareShare
ReportReport
Posted on by 2
Hi,
 
I'm trying to send attachment with Power Apps and for basic need it's working (file from Canvas App's media, file from SharePoint List attachment).
The issue I have is when the attachment is a picture in a SharePoint library. I'm able to filter on the image and even display it in a "Image" object with : 
First(Filter(ModelesFlow,Name="LOG_")).'ID de document'
 
But the "DocumentID" is an hyperlink and when I use it in :
Table( {Name: "filename.png", ContentBytes: First(Filter(ModelesFlow,Name="LOG_")).'ID de document', '@odata.type':""})
 
I get an error from SendMailV2:
"The request was not sent or there was no response from the server. Check your internet connection"
 
Thanks for your help
Categories:
  • WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at
    Hi @Charles_Antoine​​​​​​​
    The issue is that the actual file content is not available in Power Apps. You need to use a Flow as below
     
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
     
     
  • Charles_Antoine Profile Picture
    2 on at
    Thanks @WarrenBelz for your answer.
    Do you think I could use Power Automate to retrieve the file content into power apps?
  • WarrenBelz Profile Picture
    156,750 Most Valuable Professional on at
    If you simply want to view the picture, the Library has a Thumbnail field
    ThisItem.'{Thumbnail}'.Large
    where you can view the picture in an Image control (example is from a Gallery with the Library pictures displayed)
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard