Title:TextInput.Text,
},Form1.Updates));
Concurrent(
Patch(Datasource,LookUp(Datasource,ID=PrevPatchedID.ID),Form1_1.Updates),
Patch(Datasource,LookUp(Datasource,ID=PrevPatchedID.ID),Form1_2.Updates)
)
@Mike2500
I have a solution.
When you patch an item, you are able to save the patch to a variable, giving you the newly created ID number. From there, you can patch updates to that same record via ID.
We know, you can
Patch(YourDatabase,Defaults(YourDatabase),{Field:"Value"},form1.Updates)
But lets expand on this. In ONE SINGLE submission, we need to accomplish a few things. You can first submit the record as above, with 1 of your attachments being submitted. But, lets go ahead and grab the newly created ID by wrapping a Set Variable around the Patch Function.
Set(PatchedID,Patch(YourDatabase,Defaults(YourDatabase),{Field:"Value"},form1.Updates))
The above code will now submit the record and all fields, and it will add the first attachment, and return to the variable the ID (among other info)
We can now execute, two additional patch functions.
Patch(YourDatabase,LookUp(YourDatabase,ID=PatchedID.ID),Form1_1.Updates);
Patch(YourDatabase,LookUp(YourDatabase,ID=PrevPatchedID.ID),Form1_2.Updates);
All together, these three functions (the first being the "Set(Patch())" ) all together will submit multiple attachments from multiple sections of 1 singular form, into 1 single record.
Finished code should look about like this:
Set(PrevPatchedID,Patch(Datasource,Defaults(Datasource),{