cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pal95
Helper IV
Helper IV

Powerapps can't upload a picture to SharePoint

Hi,

I have the formula to update a text and photo to Sharepoint.

I can choose if I would like to update a text, a photo, or a text with a photo. If I update the text, everything is ok. If I update a photo, nothing happens. If I update a text and a photo at the same time, both text and photo do not upload to SharePoint.

The photo is stored in my collection called 'Photos'.

Here is my code on the button select:

 

 

If(ValFlygtBalls = 1, Patch(Main,First(Filter(Main, Title = ValFacility.Title)), {FInstall: "DONE BY " & ValName & " - " & TextInput1.Text, FInstallPic: First(Photos).Url}),
If(ValFlygtBalls = 2, Patch(Main,First(Filter(Main, Title = ValFacility.Title)), {FRaiseOrLower: "DONE BY " & ValName & " - " & TextInput1.Text, FInstallPic: First(Photos).Url}),
If(ValFlygtBalls = 3, Patch(Main,First(Filter(Main, Title = ValFacility.Title)), {FModify: "DONE BY " & ValName & " - " & TextInput1.Text, FInstallPic: First(Photos).Url}),
If(ValFlygtBalls = 4, Patch(Main,First(Filter(Main, Title = ValFacility.Title)), {FInstallIS: "DONE BY " & ValName & " - " & TextInput1.Text, FInstallPic: First(Photos).Url}),
If(ValFlygtBalls = 5, Patch(Main,First(Filter(Main, Title = ValFacility.Title)), {FFixIS: "DONE BY " & ValName & " - " & TextInput1.Text, FlygtBalls: "DONE", FInstallPic: First(Photos).Url}))))));

Reset(TextInput1);
UpdateContext({ValFlygtBalls: ValFlygtBalls + 1});
If(ValFlygtBalls = 6, Navigate(SuccessfulSubmit,ScreenTransition.Cover,{ValFacility:ValFacility, ValSubmit: "FlygtBalls", ValName: ValName}));

 

 

 
My SharePoint database is attached. Every column with 'Pic' in name is marked as a picture in SharePoint.

Thank you for your time!

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

How are you capturing the picture to upload?

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
JR-BejeweledOne
Super User
Super User

How are you capturing the picture to upload?

 

 



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

View solution in original post

Nevermind, I changed the method and it's ok now.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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