Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Created November 28, 2019 17:46
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/196f60b98355437f514f3a5d71deee4c to your computer and use it in GitHub Desktop.
Save beckettkev/196f60b98355437f514f3a5d71deee4c to your computer and use it in GitHub Desktop.
Patch('My Document Library Name', {
MyInternalLookupFieldName: {
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: MyLookupComboBox.Selected.Value,
// Notice the only additional property is the ID for lookups (otherwise it is the same as a choice value)
Id: MyLookupComboBox.Selected.ID
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment