cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ravee_82
Helper I
Helper I

Easy Way to uploaded pics to sharepoint from powerapps without flow or collection

Hi Guys,

 from last few days i was struggling to save uploaded images in power apps and save to SharePoint and get back to power apps 

couldn't find a satisfactory answer and after some time i got a solution without flow or collection

it can be done in 4 simple steps

1,Get binary data of image using a button control On select function create a variable ;Set( ImageJSON, JSON( UploadedImage2.Image,IncludeBinaryData ) )

2,Put that in a text feild and to remove "" from begining and end of the value you need to use replace function ;Replace(ImageJSON,1,1,"")for first " and Replace(TextInput1.Text,Len(TextInput1.Text),1,"")for last 

3,put in a Image on Image property give the second text feild name 

4;Now you can save in share point multiline text column using patch functiona and call back image using lookup function anytime 

NO NEED OF COLLECTION OR FLOW 

 

46 REPLIES 46

Thank you Ravee!  This solution helped me greatly!  

My pleasure if it worked for you please marked as accepted solution 

Hi @v-xida-msft 

 

I am new to internet blogs.  Regarding the @ravee_82 post - I would like to Accept it as the solution, but I don't know how to do this.  Will you please tell me how to do this?

c_shannon
Frequent Visitor

Accept it as the solution

hanglie
New Member

Hi Ravee_82,

 

I am trying to execute your solution but not really sure how it works in detail.

 

I am stuck after step 1, could you please help?

 

Thanks,

Hang

 

hanglie_0-1612801627713.png

 

Hi ,

Theory is change image to json binary take away the "" save in sharepoint and than lookup using unique feild 

 

1,Get binary data of image using a button control On select function create a variable ;Set( ImageJSON, JSON( UploadedImage2.Image,IncludeBinaryData ) )

c_shannon_0-1612917558952.jpeg

 

 

 

2,Put that in a text feild and to remove "" from begining and end of the value you need to use replace function ;Replace(ImageJSON,1,1,"")for first " and Replace(TextInput1.Text,Len(TextInput1.Text),1,"")for last 

c_shannon_1-1612917558958.jpeg

 

 

c_shannon_2-1612917558966.jpeg

 

 

 

3,put in a Image on Image property give the second text feild name 

In my case, DataCardValue47 is referencing the cell value of the SharePoint list item.

c_shannon_3-1612917558975.jpeg

 

bertrandedin
Helper I
Helper I

Hello,

Thanks for this post.

 

I tested the application.
I have these instructions in my multi-line column:

bertrandedin_0-1614990327495.png

 

But no picture, is it possible to load image in the column ?

If this is possible, I do not know how.  

No unfortunatly not 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (897)