web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / editing image in galle...
Power Apps
Answered

editing image in gallery before submitting to sharepoint

(0) ShareShare
ReportReport
Posted on by 407

Hi, i have an offline, online app, the user saves to a local connection, including images and signature, then when online, submits to sharepoint. I need the ability for the user to be able to go into the gallery (connected to local collection) and edit the images/signature before submitting to sharepoint. Only having problems with the image/signature side.

Here is a little more info, i add the image to a collection using 

Collect(KBXCollection, {Title: Employee_ED.Selected.Value, Image1:Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")}); Reset(AddMediaButton1);Reset(Employee_ED);SaveData(KBXCollection,"KBXCollectKeep");Navigate(ED_Collection) the image is captured using an addpicture control 
On the ED_Collection screen, i have a gallery with the data source set to KBXCollection, within the gallery, a chevron arrow navigating to another screen named CollectEdit2. On this screen, a textinput with the default value set to CollectGallery.Selected.Title and an add picture control with the UploadedImage5 sample set to;
If(IsBlank(AddMediaButton1.Media), CollectGallery.Selected.Image1, AddMediaButton1.Media)

On the same page, i have a button with the onselect set to Patch(KBXCollection, CollectGallery.Selected, {Title: Employee_2.Selected.Value, Image1: AddMediaButton2})  (I have also tried UploadedImage2)

I then have a button that saves all this through a flow onedrive to pdf; sample below
p>&nbsp;</p>
<p><strong>Images of work conducted:</strong></p>
<p><img src="&JSON(CollectGallery.Selected.Image1, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image2, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image3, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image4, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'></p>
<p>&nbsp;</p>
<table style='height: 5px;' width='564'>
<tbody>
<tr>
<td style='width: 555.2px;'><strong>Parts</strong></td>


Patch(KBXoffline, Defaults(KBXoffline),{Title: CollectGallery.Selected.Title,Image1: CollectGallery.Selected.Image1});
Remove(KBXCollection,ThisItem);
SaveData(KBXCollection,"KBXCollectKeep")

 

Just want to be able to add the image, then have the option to go back in to the entry and edit the image before submitting to sharepoint.

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    @Matt383 ,

    How do you intend to "edit" the image? There is nothing in Power Apps that can do this.

  • Matt383 Profile Picture
    407 on at

    sorry not edit, just change the picture to another one

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @Matt383 ,

    I actually do this with field photos - if the user does not like the photo taken, they can delete it and add another one. I just use a "trash bin" in the gallery with 

    RemoveIf(
     CollectionName,
     ThisItem
    )

     

    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.

  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    Hi @Matt383 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    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.

  • Verified answer
    Matt383 Profile Picture
    407 on at

    Hi Warren, thanks for the advice. I ended up creating a new window, adding some picture controls and set their default to the gallery and patch them from there.

     

    KR's,
    Matt383

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard