Thanks for the quick reply, Ed!
I tried creating a string variable of the email addresses, and though the result is correct, the person column can't pick up the claims.
For instance, if I just enter one email, it succeeds in overwriting the column with the Person, and the output looks like this:
{
"Additional_x0020_Reviewers": [
{
"Claims": "FirstEmail@company.com"
}
]
}
But this doesn't work (which is the output of the string):
{
"Additional_x0020_Reviewers": [
{
"Claims": "FirstEmail@company.com;SecondEmail@company.com"
}
]
}
The output should look like this (which works if you've got the emails individually):
{
"Additional_x0020_Reviewers": [
{
"Claims": "FirstEmail@stanleygroup.com"
},
{
"Claims": "SecondEmail@stanleygroup.com"
}
]
}I tried to trick it by including in the string, but unfortunately the quotation marks get escaped with a backslash which causes it to error:
[
{
"Claims": "FirstEmail@company.com\"},{\"Claims\":\"SecondEmail@stanleygroup.com"
}
]I tried playing around with string variables for a bit, to no avail.
BUT... I this did help me find a solution! Or at least a work-around. There's likely a more elegant solution, but this functions.
The existing multi-person field is an array with various user information. I created a separate Person column (not multi), and put the input email there first so I could retrieve the user from it.
I then appended the user from that column to the array variable, and used that to populate the field (switch to input entire array). And it works! (at least today)
Instead of the holding column, I also tried retrieving the user profile, but didn't find anything that took. Better methods are always appreciated!
