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 / Base64 data to Attachm...
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.

Categories:
I have the same question (0)
  • developingteal Profile Picture
    392 on at

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

  • powerguy123 Profile Picture
    2 on at

    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

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

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard