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

New Account Password Email Failure

Ryne_G
New Contributor III
New Contributor III

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?

 

3 REPLIES 3

pmahalle
All-Star
All-Star

Hi @Ryne_G ,

Can you try with below expression for password 

${password}
${task.password}


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂

rushikeshvartak
All-Star
All-Star

Try below script in email body to find available variables in email

${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}

 


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

Ryne_G
New Contributor III
New Contributor III

Thanks all - using ${task.password} produced the expected results