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 Apps
Unanswered

Retrieving a file

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I use powerapps add media controle in order to load an excell file and then I save it in a collection with its name and contant. I noticed that powerapps automaticly stores content in blob storage and in fact the content displayed on the content row is a link like this: appres://blobmanager/...................................

 

On the other hand, I created a power automate flow to get the excell file from the power app and then stores it in sharepoint. But when I try to give the content to the file parameter as:

JSON(
        MyFile,
        JSONFormat.IncludeBinaryData
    )
knowing that: 
Collect(
    MyFile,
    {
        Name: add_file_button.FileName,
        Content: add_file_button.Media
    }
);
 
it does not work and powerapps keeps saying it is an invalid format :////
sinshua_0-1706212870914.png

I am really blocked here and I've tried many suggested methods on web but none worked for my case. I'll highly appreciate your support.

 

Thanks

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

    Hi , @Anonymous 

    Dose your input parameter in your flow is the file type ? If this , you need to pass the record in the flow.run() function.

    Flow.Run(Record type) 

    vyueyunmsft_0-1706231936911.png

    You need to pass :

     Flow.Run( {file: {

                        contentBytes: UploadedImage1.Image,

                        name: GUID() & "-test.png"

                    } })

     

    Best Regards,

    Yueyun Zhang

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard