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:
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.

Report
All responses (
Answers (