Hello!
I'm having issues in patching Multi-Select Option Sets to CDS. I'm doing this besides the native functionality because I need to patch two category records (Let's call them Data 1 and Data 2) to just one Record, and I can't do that natively with the Edit Form and Submit button to CDS.
In SharePoint, I remember that we have a code to patch multi-select dropdown boxes to SharePoint using the following code (for example I have a Position column in SharePoint):
Merch: ForAll(
Merch.SelectedItems,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: Value
}
)This is the same thing when patching the dropdown value (not multi-select):
Position:{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: 'Position-Drop'.SelectedText.Value
}
In CDS, I want to achieve the same thing since I'm transitioning CDS to some of our items in SharePoint for better security control and relational data. But when I try to do the same thing, obviously it will throw in an error since it references a SharePoint function rather than CDS.
What are the equivalent CDS patching option for Multi-Select and normal option sets?