Hi All,
I have used Send Email Smart Service Node in my process. I have my pv!emailDetails (Type CDT) through which I'm getting multiple Cc email addresses data like "123@test.com; 987@test.com" from Web API.
Currently I'm only using this logic in CC - toemailaddress(pv!emailDetails.CcEmailAddress).
Please suggest what logic can I use in the Cc so that email gets sent to all the unique multiple email addresses.
Thanks a lot in advance.
Discussion posts and replies are publicly visible
Try this one toemailaddress(split(pv!emailDetails.CcEmailAddress,";"))
thanks a lot ammireddys the logic that you said is sending multiple email addresses correctly. But I want them to also be unique. Please suggest what can I possible do to send emails to only unique email addresses?
Please try this:
toemailaddress( reject( isnull( _ ), union( { split( pv!emailDetails.CcEmailAddress, ";" ) }, null ) ))You can replace isnull function with the null check rule.
You can use the union function simply while invoking your toemailaddress function , so that it will give you unique values.For ex : toemailaddress( split(union(pv!emailDetails.CcEmailAddress,pv!emailDetails.CcEmailAddress)),";")
thanks a lot Pratiksha Jain it worked
thanks a lot