Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Can we concat dynamic attribute with static value in to/cc field in email

Prithviraj1
New Contributor
New Contributor

Hello Everyone,

We have requirement where we want to calculate the cc field based upon below concatenation of attribute and values.
Consider  a user has an email id as 'abc@xyz.com' and departmentname attribute as 'Technical', our requirment is to add departmentname attribute in between email by splitting them as below, example : 'abcTechnical@xyz.com' .

We tried with few combinations but it did not work, please let us know your thoughts on the same.

Your response is much appreciated.

Thanks,
Prithviraj

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

${assignee?.email?.split('@')[0]}+${user?.departmentname}+'@'+${assignee?.email?.split('@')[1]}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thanks for your reply,

Above logic is not working, still cant receive the notification, i tried it with static string as 'ABD'+${user?.departmentname}+'@'+'xyz.com' it is also not working.

Try in email body and check


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Still the email is not triggered, also can try using a static value like this 'ABD'+${user?.departmentname}+'@'+'xyz.com' 

<%if (user?.departmentname== 'a' ) print "" else print "'Rushi'.concat(${user?.departmentname}).concat('@forum.com')" %>


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.