How can I create a new item in a SharePoint list and add an office365 user to a Person type column? The user won't always be a member of the site, so I'm not able to use the id of the site user.
I've tried with the following code and didn't have any luck:
{
"__metadata": {
"type": "SP.Data.<List name>ListItem"
},
"formValues":[
{
"FieldName": "Actiontakenby",
"FieldValue": "[{'Key':'i:0#.f|membership|<email>]}'}]"
}
],
}
I've also tried changing the Uri and use all of the following without any luck: /items , /AddValidateUpdateItemUsingPath , and /validateUpdateListItem
I've been able to submit and create the new item by removing the people type column, so I know this column is the one causing the issue.
I can't use 'Create Item' because I'm saving my site address as a variable to later share this flow as a template, this is why I'm using HTTP Request with POST method.