Hi
I have a Power Apps Canvas app and I use Patch to add items to a SP List which works fine.
I am trying to get the ID of the item after it is patched but run in to an error.
Thanks
P

Set(vLastPatched,
Patch('Suspicious Transaction Report',
Defaults('Suspicious Transaction Report'),
{
'Submitter Name':
{
'@odata.type': "Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & submitterName.Selected.Email,
DisplayName: submitterName.Selected.DisplayName,
Email: submitterName.Selected.Email,
JobTitle: "",
Picture: ""
},
'Date of Submission': dateOfSubmission.SelectedDate
//,Attachments:attacher.Attachments
}
)
);
Notify("Form added" & vLastPatched, NotificationType.Information);
Patch('Suspicious Transaction Report',LookUp('Suspicious Transaction Report',ID=1),formAttachments.Updates);