Hi All,
I'm trying to patch multiple fields back to my SharePoint list but struggling with combining 2 working patch formulas to a single patch function.
Here is each patch function that works independently:
The below patches editable text fields in my gallery:
ForAll(Filter(OnCallPersonGallery.AllItems, OnCallToggle.Value = true),
Patch('On-Call Scheduler',
ThisRecord,
{'Cover Start Date':DateValue('Editable Start Dates - OnCall'.Text), 'Cover End Date':DateValue('Editable End Dates - OnCall'.Text), 'Cover Start Time':'Editable Start Time - OnCall'.Text, 'Cover End Time':'Editable End Time - OnCall'.Text}));
The below patches a person field in my gallery:
Patch(
'On-Call Scheduler',
OnCallPersonGallery.Selected,
{
'Cover Person On Call':{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|" & PeoplePicker.Selected.Mail,
DisplayName:"",
Department:"",
Email: User().Email,
JobTitle:"",
Picture:""
}
}
)
I would like to combine them both so that they work off a single patch function and update back to my SharePoint lists with one click of a button.
Is anyone able to help me, please?