I'm creating this workflow to send each responsible employee a list of the accounts they are responsible for resolving that have been outstanding more than 30 days. The email looks great because after retrieving the User ID from the first search, it is used to loop through results of a second search that is specific to their User ID; however, the same email is being sent to the same user for each entry in the search result containing their User ID. If there are 12 entries in the results of the first search containing their user ID, they will receive the same email 12 times. I don't want to obtain the User IDs from an Active Directory group because they're not configured yet, and some of the entries are for terminated employees. Is there a way to do one of the following?:
Limit the results of the first search to only show the first entry for each user
Only loop through the search results once for each user
Only retrieve distinct field values from the search
Thank you!