Hi All,
I have a Edit form with an upload control. The data connection of the form is established with a SharePoint list ListA. When a file is attached using the form control, it is expected to update in a SharePoint Document Lib DocA. I have used Graph API to upload the file and the function is written in OnSelect property of Submit button before the SubmitForm() is executed.
Now the challenge is, when the file is uploaded in DocA, I want few list column values to also get updated along with file uploaded to DocA.
ForAll(
'Quotation 1'.Attachments,
Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/sites/<<SiteID>>/drives/<<DocA_ID>>/root:/"& ThisRecord.Name &":/content",
"PUT",
ThisRecord.Value
));
ForAll(
'Quotation 2'.Attachments,
Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/sites/<<SiteID>>/drives/<<DocA_ID>>/root:/"& ThisRecord.Name &":/content",
"PUT",
ThisRecord.Value
));
IfError(
SubmitForm(Form1),
Notify(
"Failed to submit",
NotificationType.Error
),
Notify(
"Form has been Submitted",
NotificationType.Success
);
ResetForm(Form1);
Navigate(SuccessScreen)
);
How can that be achieved as using the Http request, already the file is uploaded. How can we update the column values for each file?
@ShaneYoung @WarrenBelz @Ethan_R @developerAJ