Hi All,
I am struggling to get patch function to work. Code below is not patching
Please can you help.
Thanks
Announcements
Hi All,
I am struggling to get patch function to work. Code below is not patching
Please can you help.
Thanks
Hi Anand,
I figured it out. It was my varItemID.
It was a text value not a number. To change to number i did following:
Set(varListItemID, Value(varItemID));
Thanks for you help.
Patch(
'Archive',
LookUp(
'Archive',
ID = varItemID
),
{
ContractOwner: {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership| User().Email",
Department: "",
DisplayName: User().DisplayName,
Email: User().Email,
JobTitle: "",
Picture: ""
},
Company: cbxCompanyView.Selected.Value,
BusinessFunction: cbxBusinessFunctionView.Selected.Value
}
);
try this.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hello,
Thanks for responding, i tried that but it returns an error.
Try this
Patch(
'Archive',
LookUp(
'Archive',
ID = varItemID
),
{
ContractOwner: cbxContractOwnerView.Selected.Value,
Company: cbxCompanyView.Selected.Value,
BusinessFunction: cbxBusinessFunctionView.Selected.Value
}
);
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1