Hi, I am trying to use the Set Field Value action available in the rules to set the value of a Person or Group (multi value) field. The rule is getting data from field1 and setting value in field2. When I type in the first person’s name and select that person, field2 value gets populated as expected. When I type in a second person’s name and select that person, field2 does not get updated. I see an error in dev console:
https://xxxx.sharepoint.com/sites/Intranet/_api/web/siteUsers/getByEmail(‘%20xxxxx@xxxx’) 404 (Not Found)
As you can see there is a %20 in front of the actual email address and because of that user is not found. So this seems like a bug. Can you look into this?
I also tried to use the setFieldValue function, but that didnt work either. With this there were no errors in dev console. I tried different ways to use this function from js.
– setFieldValue(‘field2’, getFieldValue(‘field1’); <– this didnt work at all.
– I tried using a for loop to iterate over values from ‘field1’ and tried setFieldValue(‘field2’, values[i].email). <– this updated field2 with the first person from field1, but second person was not brought over.
How do you use this setFieldValue function in this case?