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

Change request email binding variables are not working

hareeshreddyk
New Contributor II
New Contributor II

We have configured email notification in Globalsetting>Requests>Reviewer Change Notification

to notify to the requestor

Email triggered to requestor but email body does not populate the binding variables values.

What might be the issue i dont understand.. Is this something binding variables issue.

hareeshreddyk_0-1718103742174.png

 

13 REPLIES 13

pmahalle
All-Star
All-Star

Hi @hareeshreddyk ,

Issue might be in date conversion. Can you try the email without last two variables where you are doing date conversion.


Pandharinath Mahalle(Paddy)
If this reply helps your question, please consider selecting Accept As Solution and hit Kudos 🙂

rushikeshvartak
All-Star
All-Star

Try below for date

${request.duedate.toString().substring(0,10)}


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

hareeshreddyk
New Contributor II
New Contributor II

Thanks @pmahalle ,

I tried as suggested by removing last two variables but still values are not getting populated.

hareeshreddyk_0-1718109523598.png

 

 

Please validate supported variables.

Purpose :

To get what variables are present to use in the email template.

Email Template steps :

keep Advanced HTML CSS flag is checked

Keep your email Address in TO

TO /CC/BCC & Subject - Don't use any dynamic variables

Add only below code in Email Body
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

Output : using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


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

hareeshreddyk
New Contributor II
New Contributor II

Hi @rushikeshvartak ,

T tried below in email body

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

It resulted only few variables 

hareeshreddyk_0-1718171205994.png

And tried with those limited variables Even these values are not populated 

hareeshreddyk_1-1718171267217.png

 

 

Hi @hareeshreddyk .

Can you please check if the values that are not populated are present in requesterid (for the particular user).

if the values are not present please trigger the email for proper user who has all values.

if the values are present and still not populating please share the logs if possible.

hareeshreddyk
New Contributor II
New Contributor II

hi @ganimkt ,

Yes there are the values to whom this email is triggered. But email only not populating those values.

I am sharig the logs please share me if you find any which is causing the issue.

Does HTML flag ticketed in email template?

Share email template config screenshot


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

hareeshreddyk
New Contributor II
New Contributor II

Yes @rushikeshvartak HTML flag has been ticked in email template

please look at the shared screenshot

hareeshreddyk_0-1718263184489.png

 

There is not variable called approvallink


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

hareeshreddyk
New Contributor II
New Contributor II

@rushikeshvartak ,

I have amanded the approval link and tried

hareeshreddyk_1-1718349875633.png

 

approvallink is to redirect to the request approval page but issue is not that, there is no value that is getting populated in the body

As mentioned there is no approvalink variable. can you share what is code behind approvalink ? mask sensitive info


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

hareeshreddyk
New Contributor II
New Contributor II

This is the VARIABLE for approval link

<a href="https://**********-***.saviyntcloud.com/ECM${approvallink.toString().replaceAll('null','')}">Saviynt.</a>

As i mentioned i tried with out this approval variable...But even then these values are not populated