Patch(
colItemsV2,
ThisItem,
{
Item: inp_Itemv2.Text,
RequestedFor: "" , //Not sure what to do here. The input field is a combo-box search for a person in our Office365User connection.
Cost: Value(inp_Costv2.Text),
Quantity: Value(inp_Quantityv2.Text),
QuantityType: inp_QuantityTypev2.Selected.Value,
DateNeeded: dp_DateNeededv2.SelectedDate,
DeliveryRequired: ckbx_DeliveryReqv2.Value,
ItemComments: inp_ItemComments.Text,
Source: inp_Sourcev2.Text,
SourceURL: inp_SourceURLv2.Text,
Subtotal: Value(inp_Costv2.Text) * Value(inp_Quantityv2.Text),
ShowSaveButtons: false
}
);
I've tried using "RequestedFor: cb_UserSearch;" and that does appear to add the record to the collection. But then when I try to Patch the collection to the SharePoint list, that's where I get stuck. I cannot figure out what needs to go after RequestedFor in the Patch to the SP List. Here's the code I have, with ???? being the confounding part...
ForAll(
colItemsV2,
If(!IsBlank(Item),
Patch(
'Procurement Request Line Items',
Defaults('Procurement Request Line Items'),
{
Title: Item,
RequestedFor: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & ????,
Department: "",
DisplayName: "",
Email: "",
JobTitle: "",
Picture: ""
},
Cost: Cost,