I have a form which allows the user to select people they want to send an email to. I am not able to grab the people (or email addresses) from a workflow. I am thinking I need to create a variable in the workflow to collect the people that are selected to have the email sent to but I'm not sure where to start.
Any help is appreciated.
Solved! Go to Solution.
I guess a dropdown is connected to a lookup field ('userlookup') and so you have a list mapping users and their mail addresses ('userlist').
so you need to proceed as follows
- use set vartiable action to get IDs of selected users (items) from multivalue 'userlookup' field
- use regular expression action to turn list of IDs into a collection
- use for each loop action to iterate over the collection
- use query list action or set variable action to get a mail address from 'userlist' from an item identified by (current loop) ID