cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
Continued Contributor
Continued Contributor

Re: Powerapps can't upload a picture to SharePoint

How are you capturing the picture to upload?

 

 

View solution in original post

2 REPLIES 2
Highlighted
Continued Contributor
Continued Contributor

Re: Powerapps can't upload a picture to SharePoint

How are you capturing the picture to upload?

 

 

View solution in original post

Highlighted
Helper III
Helper III

Re: Powerapps can't upload a picture to SharePoint

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,703)