Workflow - "Action:Get List of Identities"

hello!
Creating a new workflow using “Get List of Identities” which needs to pull contents/peoples email from a distribution list. Today I have Action setup as a “search query” and the search query is just the name of the DL in " ". This obviously isn’t working and I am looking to see how I could pull the names out of a DL which will then send an email to those people (which is the next step in the workflow). Everything in the workflow is working with the exception of the DL. No errors, it just doesn’t do much. Any help would be greatly appreciated. Thank you.

Hi Diane,

Have you considered inputting the identities from the list into a loop & sending an email off to each identity individually.

For example, 10 identities returned from the search - these are input into the loop which will iterate through each identity & send an email per identity. The email template would remain the same for each, but it will just be sent per individual not as a single email to all identities in the DL.

HI Liam -
I have not considered that as I think that would be hard to maintain whenever anyone is added or removed from the DL and we were also informed that sending multiple emails in a workflow is not best practice. Are DL’s not supported?

Hi,

For the recipient list you could potentially use a similar JSONPATH like this - $.getListOfIdentities.identities[*].email - to populate the emails from the search into the recipient email list of the send email workflow action instead.

image

Thanks.

2 Likes

Liam,
Have never used a loop before, so trying to understand. I created the Loop, added all the identities into the loop using “get identity” and their employee ID.
On the operator section under Loop input and Context - I am not sure what should be entered here.
Thanks

image

Hi @DianeStotz ,

As @LiamAndrewBrowne mentioned first,

  1. if you intend to send one common email to all fetched identities, you can use as below:

Recipient Email Addresses: $.getListOfIdentities.identities[*].email

  1. If you intend to send email to a particular DL, you can simply specify the DL value in the Recipient Email Address field in the above.

  2. If you intend to send email to each identity individually, configure a) and b) as below:
    a) Loop operator in the workflow: Loop Input: $.getListOfIdentities.identities

b) Recipient Email Address field in the Send Email:$.loop.loopInput.email

The solution is same as what @LiamAndrewBrowne suggested. Just added details.

HTH

3 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.