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:
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
1 Like
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.
Try changing the json file like this and try
2 Likes
When i changed json file as you proposed it now looks like this in IDN:
and there is an error:
I now realized there should be recipientEmailList not recipientEmalList.$ so i changed it:
now my IDN looks like this:
but unfortunately im still getting the same error trying to save it
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!!
1 Like