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.
I would not use a http response, rather I would use the power apps response action
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:
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.
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.
Is there something that I miss or am I doing this right?
Yeah, you can use the base64decode and encode functions in power apps to accomplish this
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional