Hi everyone,
I’m working on a Power App with a SharePoint list as the data source. The list contains location records, each with an Image column (LocationPhoto).
In my Gallery (GalleryLocations), I want to:
-
Show a placeholder image when there’s no photo yet.
-
If a photo already exists, display it in the gallery.
-
Allow the user to upload or take a new photo and have it replace the existing photo for that gallery item.
What I tried:
Patch(
Locations,
GalleryLocations.Selected,
{ LocationPhoto: AddMediaWithImage.Media }
)
But this gives errors like “LocationPhoto does not meet record type” or Power Apps expects a resettable control as input.
I also tried using variables, JSON(), and Reset(AddMediaWithImage), but still can’t get it to replace the existing image.
Question:
What is the correct approach to:
-
Show a placeholder image in the gallery if no photo exists.
-
Upload/take a new photo from
AddMediaWithImageand replace/update theLocationPhotoin the selected SharePoint record?
Any working examples or best practice patterns would be very helpful.

Report
All responses (
Answers (