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 / Trying to create a fil...
Power Apps
Unanswered

Trying to create a file on Sharepoint from a Sharepoint list attachment

(0) ShareShare
ReportReport
Posted on by 18

Hello,

basically I'm trying to implement a system, where employees can submit their drafts for validation by uploading a file to the list of projects in Sharepoint and then press a button, which creates a new file on the Sharepoint server in a desired folder. So far I've managed to get it to create a file in requested directory, however the file doesn't appear to have any content. I am using the Create a file in Sharepoint action in a Power Automate flow and OnSelect function for the button is

CreateFileFromAttachment.Run(First(DataCardValue8.Attachments).Name, First(DataCardValue8.Attachments).Value)

where DataCardValue8 is found under the Attachment_DataCard and I've set the action in the flow to ask for name and file content in Power Apps.

 

To summarize, I don't know how to get content of the attachment. 

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @KarlXII ,

     

    I recommend that you use flow to fetch the attachment content instead of passing it through canvas.

    You can use canvas to pass item ID to flow. Then you can use the ID to get the attachment content.

    vxiaochenmsft_0-1683862140839.png

     

    Best Regards,

    Wearsky

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard