Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Last active November 28, 2019 17:45
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/84438ed664b42c78e6515230e9f08123 to your computer and use it in GitHub Desktop.
Save beckettkev/84438ed664b42c78e6515230e9f08123 to your computer and use it in GitHub Desktop.
Setting a single valued taxonomy column from a combo box
// Where 'My Document Library Name' is the name of your document library / list
Patch('My Document Library Name', {
// Where 'MyInternalTaxonomyFieldName' is the internal name of the Managed Metadata column in SharePoint
MyInternalTaxonomyFieldName: {
// Where MyComboSelectBox is the single select combo box containing the selected choice in your Power App
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedTaxonomy",
TermGuid: MyComboSelectBox.Selected.TermGuid,
WssId: MyComboSelectBox.Selected.WssId,
Label: MyComboSelectBox.Selected.Label,
Path: MyComboSelectBox.Selected.Path,
Value: MyComboSelectBox.Selected.Value
}
// Each of your other fields would be comma separated below...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment