Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/16/2024 06:06 PM
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
Solved! Go to Solution.
05/16/2024 06:26 PM
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" + ">"}}
05/16/2024 06:29 PM
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
05/16/2024 06:30 PM
Email template is attached under endpoint for new accounts
05/16/2024 06:36 PM
What operation task create /complete ?
05/16/2024 06:31 PM
05/16/2024 06:37 PM
email is triggred on task completion in endpoint below is screen shot for same
05/16/2024 06:40 PM
As per screenshot of task account name is 0201233 and also printing correct in variables. what is your expectations for account name ?
05/16/2024 06:43 PM
But account name is firstname lastname
want to understand that is it taking something else
05/16/2024 06:49 PM - edited 05/16/2024 06:50 PM
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
05/16/2024 06:52 PM
Please find below screen shot for admin tab account details
Accountname is firstname lastname
05/16/2024 06:54 PM
${task.accountKey?.name}
05/16/2024 07:47 PM
It works Thanks