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 / Patching photos with f...
Power Apps
Answered

Patching photos with form.update and other data

(0) ShareShare
ReportReport
Posted on by 103

Hi, 

 

I want to add photos with other data as a new entry in my sharepoint list. I can't figure out how to merge the photos with all the data in a single patch.

 

This is my view:

Aionik_1-1665657735291.png

 

I have the following components: 

"Cam" to press when photos should be taken and displayed in the form.

"Save" to combine the images with all other data in the sharepoint. 

 

Cam Icon in the "OnSelect" section

 

UpdateContext({varPID: GUID()});;
Collect(
 colImage;
 { 
 Value: camAttach.Stream;
 DisplayName: Text(
 Now();
 "[$-en]hhmmss"
 ) & txtTitle_unitnr.Text & ".jpg";
 Id: varPID;
 AbsoluteUri: ""
 }
)

 

This was taken from https://www.practicalpowerapps.com/images/attachcameraphotos/

Author: @WarrenBelz 

 

The Form is displayed in new mode and the attachment "acPhotos" has the Item colmage with DisplayName and Value that only takes attachments from the drive collection to be able to update the photos taken.

 

Save Button in the "OnSelect" section

 

Patch(
 DriveLib;
 Defaults(DriveLib);
 { 
 Title: Last(DriveLib).ID+1; 
 DManu: {Value:GaDrive_Title.Selected.Value};
 DType: txtModellserie_6.Text;
 DArt: {Value:Radio_Art_1.Selected.Value};
 CName: {Value:GalleryControllerType.Selected.CManu.Value & " " & GalleryControllerType.Selected.CType}
 };
 frmPhoto.Updates 
);;
//SubmitForm(frmPhoto);; Not Working 
Clear(colImage);;
Refresh(DriveLib);;

 

 

The SubmitForm is not working. I solved the table error problem and changed my sharepoint to "no information required". Still it does not work.

The frmPhoto.Updates in the patch does not upload an image with other data and does not show any errors. When I click the Save button, only my data is transferred, but the attachments are missing from the new entry.

 

Thanks for any help.

 

Categories:
  • Verified answer
    Aionik Profile Picture
    103 on at

    Update

    I have published the application in production. It works through the mobile phone, but not in the edit canvas mode (dev mode).

     

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard