Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

how to get accountname in email specific to endpoint

saurabhp
New Contributor
New Contributor

Hi,

We are trying to get accounname on account creation email. we are tried below attributes but its not working

 

${ACCOUNTNAME} ${accounts?.name} ${task.accountName}

 

${account_name} this attribute gives wrong accountname instead it is pronting username

any pointers will be help full

12 REPLIES 12

rushikeshvartak
All-Star
All-Star
  • Please confirm where email template is attached ? 
  • How email is triggered ? from ARS / rules ?

In General

To get what variables are present to use in the email template, check 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:


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


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Thanks
Rushikesh we have tried but it is prinitng wrong accountname in it  below is response for above 

resourceOwners =
tasktype = Add Access
manager = adminsaurabh
accountOwners = []
randompassword = Welcome@123
entitlement = [cn=Content Hub AUH Dealer Read Only,cn=groups,dc=auhhonda,dc=com]
provisioningOwners =
users = 0201233
requestor = admin
out = java.io.PrintWriter@3f8109ef
account_password = Welcome@123
task = com.saviynt.ecm.task.ArsTasks : 4216
accountname = 0201233 Password - Welcome@123
requestid = AutoGenerated
endpointDisplayName = ISAM_LDAP
account_name = 0201233
endpointOwners =
baseUrlForEmail = https://hostname.saviyntcloud.com/ECM
user = 0201233
taskaction = Add Access
account = null\

it is printing wrong accountname here

Email template is attached under endpoint for new accounts

What operation task create /complete ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

  • Can you share screenshot of task id 4216 Also
  • Please confirm where email template is attached ? 
  • How email is triggered ? from ARS / rules ?

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

email is triggred on task completion in endpoint below is screen shot for same

saurabhp_0-1715909802696.png

 

saurabhp_1-1715909847110.png

 

 

As per screenshot of task account name is 0201233 and also printing correct in variables. what is your expectations for account name ?


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

But account name is firstname lastname 

saurabhp_0-1715910215927.png

want to understand that is it taking something else

 

What is account name on accounts tab in Admin Is it Mayur patil or 0201233 

Seems Mayur patil is displayname

 

Please mask client name in above responses 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Please find below screen shot for admin tab account details

Accountname is firstname lastname

 

saurabhp_0-1715910731357.png

 

${task.accountKey?.name}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

It works Thanks