Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.