Posts

Using If-else conditional logic in Saviynt Email Templates to differentiate the content of the email

Image
Sometimes we need to send different email content based on conditions that we cannot achieve using groovy script then in that situation we can use the below code to meet the requirements. Here is a sample requirement and the steps to achieve the same. Short Requirement: When a New Account is Created Trigger an Email notification to the User's private email address if the user's employee type is external, else trigger a notification to the Manager and the user and manager email content is different as described below Detailed requirement: If the user's employee type is 'External' and the user has a private email address(stored in user customproperty5) Hi ${user.firstname} ${user.lastname}, A new Personal AD account has been created for you. Your manager is ${manager.firstname} ${manager.lastname} Account name: ${account_name} Account DisplayName: ${account?.displayName} Department: ${account.customproperty12} Password: ${randompassword} Request you reset the password...