I have a user picker that selects max 3 users. In the process model I want to send the email to all the users in the array of users.
Discussion posts and replies are publicly visible
What's the CDT type definiton for the "reviewer" field here? I can't tell from the screenshot whether it's anything more than plaintext.
Thus I'm worried that when you're trying to save the value of this field into your "selectedUsers" PV array, it's failing to save any value because it's trying to find a user with a username of, literally, "oludare.olugbemi sylvester.ezeani; fakeuser", and of course there is no user with that full string as its username.
Reviewer is a text field
That's what i thought - so in order to make your script task work, you'll need to parse through the text representing a list of usernames (i assume the text field is not an array).
In your script task try putting this instead of "pv!reportRequest.reviewer":
trim(split(pv!reportRequest.reviewer, ";"))
Worked! Thank you!