Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Created November 28, 2019 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beckettkev/6a718f69c91f9ba0c73196a62093afeb to your computer and use it in GitHub Desktop.
Save beckettkev/6a718f69c91f9ba0c73196a62093afeb to your computer and use it in GitHub Desktop.
// First of all we need to loop through each of the selected items in the combo box...
ForAll(
// Where 'MyComboMultiSelectBox' is your multi select combox box containing the selected items...
MyComboMultiSelectBox.SelectedItems,
Collect(
// Create a new collection called TaxonomyValuesFromComboBox
TaxonomyValuesFromComboBox,
{
// Create a new entry in the collection for each of the selected items...
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy",
TermGuid: TermGuid,
WssId: WssId,
Label: Label,
Path: Path,
Value: Value
}
)
);
Patch('My Document Library Name', {
// Save this collection against the internal SP Column name...
MyInternalMultiTaxonomyFieldName: TaxonomyValuesFromComboBox
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment