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

This solution for powerapps

 

DamolaDev
Frequent Visitor

Hi @ravee_82 

please explain the 3rd step further 

I am not sure i understand what i need to do their please enlighten me 

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

Hi, 

Once you remove "" in front and ending of the binary value you can save it as a multitext input in SharePoint and fetch it back using lookup function or an ID of the SharePoint the value will now go to image property on the image 

DamolaDev
Frequent Visitor


@ravee_82 wrote:

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 

 



@ravee_82 wrote:

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 

 


@ravee_82 

Hi Ravee

i have been able to do that and drops on the sharepoint list but i still do not get how i can view the image and other information associated with it 

Kindly help

So the problem is to display back in image do you have any unique field as I use SharePoint ID or I make unique number in power apps and other base of that I lookup the item take that binary field and put it in image property 

Choose image property and put lookup(dataset,ID = ID in poweraaps,imagedata stored in the feild)

Please contact me if still didn't get through ll snapshot 

 

 

 

07GT
Frequent Visitor

Thanks for the tip @ravee_82 , really like the concept. Any thoughts as to why my powerapps freezes up when I put the Replace(imageJSON, 1,1,"") into a text box? I can't seem to get past that step. Thanks,

 

Jason

DawidK
Helper I
Helper I

Can you post a short video or some screenshots? Thanks in advance

 

Helpful resources

Announcements
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,536)