Set Value action for People or group field type

Home Forums Modern DFFS Set Value action for People or group field type

Viewing 1 reply thread
  • Author
    Posts
    • #38233
      Amal Vellappillil
      Participant

        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?

      • #38234
        Amal Vellappillil
        Participant

          I dont know why there is a &#8217 at the end of the url, but the actual url is as follows:
          https://xxxx.sharepoint.com/sites/Intranet/_api/web/siteUsers/getByEmail(‘%20xxxxx@xxxx&#8217;)

      Viewing 1 reply thread
      • You must be logged in to reply to this topic.