Hello
I currently have this code in the OnSucess field of a SharePoint form. My SP lookup column updates fine for existing records, but for new records, I have to resubmit the form before the lookup column gets populated. Is there a workaround for this issue?
Patch(
'Engagement Summaries',
SharePointForm1.LastSubmit, // Reference to the item that was just submitted
{
'Salesforce Engagement': {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: DataCardValue6.Selected.ID, // ID of the selected item from Salesforce Projects
Value: DataCardValue6.Selected.'ID+Name' // Display value of the selected item
}
}
);
ResetForm(Self);
RequestHide();