Hi All,
I’m trying to access data from a people form control using a get item from collection action within a loop for each action but as you can see below, the object’s data is greyed out. Is there another way to access the people control data?
Hi All,
I’m trying to access data from a people form control using a get item from collection action within a loop for each action but as you can see below, the object’s data is greyed out. Is there another way to access the people control data?
I may misunderstanding how the system works, but I believe the collection returned by the people form control is a collection of people objects. Each people object has attributes like First Name, Email, Id, etc. BUT, this is an object not a collection, so using the Get Item From Collection action won’t be applicable.
In this case, I think you could just reference the attribute you need from the current Loop For Each object. Or, if you need to have the attributes as workflow variables, you could just use the Set a Variable Value action from inside your loop.
Thanks so much
I was over complicating it by trying to get the data into variables ♀️. I needed the email address so I just moved the send an email action into the loop for each action
Hi
Just beware that moving the email step within the loop may result in sending an email for each item you are iterating through. If that is not supposed to happen, then getting the email/s from the collection and setting it in a variable is the correct way to go about it
Inside your Loop For Each, you can use the Set a Variable Value action to set a workflow variable equal to the email value in the current iteration of your loop.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.