I could use some advise with the use of the AddMediaButton (Add Image) to sent this media to an existing SP List Item.
The Button seems to work, as I can visualize in an Image 'Label'.
With an If expression I can start a flow that can find the specific SP item want an effectively adds the image to the list.
If(IsBlank(LBLAddMediaButton_FileName.Text), true, FLOW.Run(TI_IdSPList.Text, AddMediaButton1.FileName, AddMediaButton1.Media)
The main problem is that the File is converted somewhere so the fileformat got corrupt. (33kB - 1kB also)
In Flow I used the method as seen in a video from Reza Dorrani (Upload files from PowerApps to SharePoint Document Library - YouTube) and f Reference John Liu's Blog.
Is someone in the possibility to advise me some tricks or workaround?
Thanks in advance
You can use an Attachment Control from a form and parse out the file content as Base 64 to pass to Power Automate to then add the attachment to your list item. You'll have to put your base64 inside the 'base64ToBinary' function within your flow in order to work correctly in SharePoint.
Shane Young has a great video on it that explains it very clearly.
@NuttyPistons Thanks for the useful link.
I tried the options and succeeded in implementing the mentioned variables with a similar outcome.
Even with the base64tobinary expression it dit not work.
I do confess I used the 'addpicture' feature instead of the attachement control. will check this out now.
For the moment there is no succes. keep you posted
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.