I am trying to link users within my Patch function using O365 Users and an Azure Connector.
When you have complex field types such as “PeoplePicker” (which is “Approver” in this example), you have to use this syntax:
Claims: ____, DisplayName: ____, Email: ____. Department: ____, JobTitle: ____, Picture: ____
- However, the SharePoint list where I stored users was not functional later on in my code (“adCouncilPicker” was my old Drop-Down connected to the SharePoint list), so I resorted to storing my users in an O365 Users Group.
- My new Combo-Box (instead of a Drop-Down) is “testO365UserComboBox”. My "Items" code is listed in the top, which pulls users from a certain group in O365 Users while using the Group ID as a parameter.
- When I replace my old Drop-Down (linked to SharePoint list) with my new Combo-Box (linked to O365 Users), it errors out my code. I changed the old attributes to the updates ones since I’m using a new variable (testO365UserComboBox) for O365 users (ex: DisplayName --> displayName), but can’t find a variable for the “Claims” object, which is required. I know I should follow the Syntax since it’s a people-picker, and suspect the error to be something wrong with the “Claims” column.
- Why is my code throwing an error and how do I fix it? Here is the explanation for the error that it is throwing.
Thank you!