Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Base64 data to Attachment control in power apps

(1) ShareShare
ReportReport
Posted on by 2

I know that this is unconventional, yet I am planning to attach a document using a base64 data to the Attachment control component in the power apps. Is there a way to make this possible?

 

From a sharepoint folder, there would be an excel file that needs to be filled-up by a user accessing it through its shared url. Then, in power automate, the base64 data of this excel file will be then extracted and included on a Response action passing it to the power apps. The power apps will use this data then to create an attachment file for the attachment control. This would create a copy from that excel file for the app.

 

I hope someone has a work around for this.

  • developingteal Profile Picture
    392 on at
    Re: Base64 data to Attachment control in power apps

    I would not use a http response, rather I would use the power apps response action

  • powerguy123 Profile Picture
    2 on at
    Re: Base64 data to Attachment control in power apps

    Hello thanks for responding. I already tried decoding the base64 of the excel file by power automate and passing it on to the power apps by a Response action. Here is a picture:

    powerguy123_0-1720748028596.png

    the 'content' property stores the decoded data of the excel file. In the Power apps, the Collect Attachment button will create a collection variable where the 'FileName' and 'content' properties are stored and placed it on the 'Items' property of the Attachment control.

    powerguy123_2-1720749976178.png

    powerguy123_3-1720749994996.png

     


    However, it seems that the attachment control couldnt recognize the data as an attached file since there is no 'Unsaved' label beside the item from the collection variable compared to the one manually uploaded.

    powerguy123_1-1720749945404.png
    Is there something that I miss or am I doing this right?

     

  • developingteal Profile Picture
    392 on at
    Re: Base64 data to Attachment control in power apps

    Yeah, you can use the base64decode and encode functions in power apps to accomplish this

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard