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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Retrieving a file

(0) ShareShare
ReportReport
Posted on by

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard