Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/22/2023 11:42 AM
Hello,
We are trying to send an email to users containing their password upon initial creation of AD account. The email is not being sent and we have the following logs:
2023-08-22T14:09:45-04:00-ecm-worker----2023-08-22T18:09:44.526053842Z stdout F 2023-08-22 18:09:44,525 [quartzScheduler_Worker-1] DEBUG services.SaviyntCommonUtilityService - baseUrlForEmail is missing in the externalConfig file. Please add it !
2023-08-22T14:09:45-04:00-ecm-worker----2023-08-22T18:09:44.526945499Z stdout F 2023-08-22 18:09:44,526 [quartzScheduler_Worker-1] DEBUG services.ArsTaskHelperService - taskemailtemplates = [{"emailTemplateType":"1","taskType":"NEW_ACC_PASSWORD","emailTemplate":"Infinex Users AD Password Notification"}]
2023-08-22T14:09:45-04:00-ecm-worker----2023-08-22T18:09:44.527242018Z stdout F 2023-08-22 18:09:44,527 [quartzScheduler_Worker-1] DEBUG services.ArsTaskHelperService - emailTemplates for template type = 1 [NEW_ACC_PASSWORD:[Infinex Users AD Password Notification]]
The email template for the AD endpoint is set with task type of New Account Password, actions of task complete, and the current body of the template in use is the following:
Hi ${user.firstname} ${user.lastname},<br><br>A new Osaic account has been created for you. Below is the information related to this newly created account including the account name and password.<br><blockquote></blockquote><b><br>Account Name: </b>${account_name}<br><b>Password: </b>${account_password}
The To and CC fields are using user.email and user.secondaryemail respectively. Can someone see the glaring mistake being made as to why we are getting the error in the logs and the email is not sending?
Solved! Go to Solution.
08/22/2023 12:46 PM - edited 08/22/2023 12:46 PM
Hi @Ryne_G ,
Can you try with below expression for password
${password}
${task.password}
08/22/2023 09:02 PM
Try below script in email body to find available variables in email
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
08/28/2023 06:19 AM
Thanks all - using ${task.password} produced the expected results