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

updating picture via powerapps

Hello, 

I have an app where a user can use the camera option in powerapps and submit a picture of an item.  The image is then sent to sharepoint in the image info column.  This is the code i am using to load the entries into sharepoint:

(Patch(MySPList, Defaults(MySPList), (Form1_1.Updates), (Form4.Updates), (Form1.Updates), {'Image Info': First(ImageCollection).Url}));
Navigate(Success);

 

This works fine for the initial entry.  However how would I update the existing entry?  for example, the user comes back and says that the picture they uploaded via the camera was not clear enough so they want to upload another picture but without creating a new entry into the app (i.e. they want to just update the existing entry).  what is the best way to simply update the picture?

Thank you for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @xrxr031 ,

Same process, but refer to the record - assuming you have the record ID available when selected from a gallery

Patch(
   MySPList, 
   {ID:GalleryName.Selected.ID},
   {'Image Info': First(ImageCollection).Url}
);

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @xrxr031 ,

Same process, but refer to the record - assuming you have the record ID available when selected from a gallery

Patch(
   MySPList, 
   {ID:GalleryName.Selected.ID},
   {'Image Info': First(ImageCollection).Url}
);

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Hi WarrenBelz, 

Thank you so much for your reply.  Your suggestion worked.  Thank you so much for your help.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

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,999)