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

'If condition' in email generation rules

Sri
New Contributor
New Contributor

Hi Community,

Can I use 'If condition' while generating an email. For example in the below screen

Sri_0-1670302694321.png

Can I write...

If users.country EQ 'AU',

concatenate users.firstname and '@abc.com.au'

elseif users.country EQ 'NZ',

concatenate users.firstname and '@abc.com.nz'

endif.

If this won't work what's the other alternative to implement this scenario.

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Use case when then

https://www.w3schools.com/sql/sql_case.asp


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Thanks Rushi.

Can I write those sql statements in that advanced query field?

Yes


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

https://forums.saviynt.com/t5/general-discussions/email-generation-rule-error/m-p/2999#M1137


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Thanks Rushikesh.