cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vikash
Frequent Visitor

Reusing list attachment control in power apps is not working properly

I have copied the list attachment control to use it in my screen to upload attachments to document library, this is done using ms flow.

vikash_1-1595398048047.pngvikash_3-1595398240964.pngvikash_2-1595398164808.png

 

I have passed the file name and file content to ms flow to create file. this creates file in document library but the file is corrupt, it does not open. 

I also tried to convert file from URI to binary but it didn't work. I am not able to understand the file content ""appres://blobmanager/e8de567f89a541b8bc525070e858xyztest". In powerapps I get error that the is not the correct format of URI. 

 

I am not sure if we can use the attachment control of list in our form, did anyone used this control to successfully upload files?

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @vikash ,

Based on the issue that you mentioned, I think there is something wrong with the File content you passed from your canvas app into your flow.

 

In order to create a file in SP Library using "Create file" action, the "File Content" field should be typed with binary data, but the 'appres://blobmanager/e8de567f89a541b8bc525070e858xyztest' is not a binary data, it's a blob data.

 

Please check and see if the following video resource could help in your scenario:

https://www.youtube.com/watch?v=kQVYid1p_vA

https://www.youtube.com/watch?v=UYK7yruBHDM

 

I also made some test on my side, the flow's configuration should like below:

5.JPG

App's configuration should like below:

6.JPG

 

I have also attached the sample flow's configuration, and sample canvas app, please consider open it directly in your PowerApps and Power Automate flow, then integrate the flow and the canvas app, try it on your side, check if the issue is solved.

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @vikash ,

Based on the issue that you mentioned, I think there is something wrong with the File content you passed from your canvas app into your flow.

 

In order to create a file in SP Library using "Create file" action, the "File Content" field should be typed with binary data, but the 'appres://blobmanager/e8de567f89a541b8bc525070e858xyztest' is not a binary data, it's a blob data.

 

Please check and see if the following video resource could help in your scenario:

https://www.youtube.com/watch?v=kQVYid1p_vA

https://www.youtube.com/watch?v=UYK7yruBHDM

 

I also made some test on my side, the flow's configuration should like below:

5.JPG

App's configuration should like below:

6.JPG

 

I have also attached the sample flow's configuration, and sample canvas app, please consider open it directly in your PowerApps and Power Automate flow, then integrate the flow and the canvas app, try it on your side, check if the issue is solved.

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (856)