'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 the response is helpful, please click Accept As Solution and kudos it.

Thanks Rushi.

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

Yes


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

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


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

Thanks Rushikesh.