IDN Workflow Send E-mail - adding multiple recipients as one variable

I assume it is a common problem. I want to send e-mail both to the user and the user’s manager (1 e-mail, not 2 separate e-mails). I Can’t add two variables like this:
image

How can i combine those 2 e-mail addresses into 1 variable that i can pass to this field?
I tried using define variable but didn’t succeed with it.

I read all the topics regarding workflow e-mail action recipients but they don’t answer my question. I only found this comment but without an explanation on how to achieve this:

Hi @maciej_itrun ,

Try this $.getIdentity.attributes.email* or $.getIdentity.attributes.body[*].email

2 Likes

i think this would help me with getting multiple e-mails from one identity? What i’m trying to achieve is getting 2 emails from 2 identities (user and manager) and combining them into one variable because i can’t pass 2 variables into this field.

1 Like

Try changing the json file like this and try
image

6 Likes

When i changed json file as you proposed it now looks like this in IDN:
image
and there is an error:
image

I now realized there should be recipientEmailList not recipientEmalList.$ so i changed it:
image

now my IDN looks like this:
image

but unfortunately im still getting the same error trying to save it

1 Like

Ok, i finally realized that the error occured due to different fields in E-mail action even though they were empty…

Your solution works! Thank you

2 Likes

Thanks for sharing the outcome. I have never tried this and now I know it works!! :slight_smile:

1 Like

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