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:
I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard