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

Bind variable FFID account name is not available

suchetadineshs
New Contributor
New Contributor
Hello,
 
We need to pass FFID account name in email template to be send for approval. 
 
Eg: If emergency access to be raised for any user lets say test1 to elevated ID FF_SECURITY, we are looking for variable which will pass FFID account - name FF_SECURITY in email.  
12 REPLIES 12

rushikeshvartak
All-Star
All-Star

Run below code in your email body & check which variable available for same. 

${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.

I tried given code, It lists everything but FFID account name. Value returned is , accounts = [].

can you share screenshot what all variables are available 


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

Here you go,

 

entitlements = []
request = com.saviynt.ecm.workflow.ARS_Requests : 3851
jbpm_activity_name = Grant_Access
exceptionCount = 0
allApproversComments = null
fullhtmlassignedrows =
requestkey = 1068078
roles = null
rejectedByMap = [:]
fullrowhtmltablerows =
out = java.io.PrintWriter@726aa0c4
listofallrolesinrequest = []
assigneemanager = sshinde
requesttype = Firefighter ID Authorization
dynamicAttrsList = []
entitlementshtmltablerowsv2 =
approvallink = /jbpmworkflowmanagement/showrequestdetails/Manager_Approval.1068078
allrolesinrequest =
requestlink = /jbpmworkflowmanagement/showrequestdetails/Manager_Approval.1068078?reqid=3851
email =
endpoints = ()
entitlementshtmltablerows =
allRejectorsComments = null
rolesshtmltablerows =
manager = sshinde
approvedByMap = [:]
rolesApprovedOrRejected = []
rolename =
request_access = com.saviynt.ecm.workflow.Request_Access : 5385
entitlement_values = []
allApprovers = []
requestor = trajat
users = kpiniset
allRejectors = []
task = null
requestid = 1068078
rolemap = [:]
assignee = kpiniset
activityname = Grant_Access
accounts = []
user = kpiniset
curExecutionId = Manager_Approval.1068078
accessItems = [com.saviynt.ecm.workflow.Request_Access : 5385]
[entitlements:[], request:com.saviynt.ecm.workflow.ARS_Requests : 3851, jbpm_activity_name:Grant_Access, exceptionCount:0, allApproversComments:null, fullhtmlassignedrows:, requestkey:1068078, roles:null, rejectedByMap:[:], fullrowhtmltablerows:, out:java.io.PrintWriter@726aa0c4, listofallrolesinrequest:[], assigneemanager:sshinde, requesttype:Firefighter ID Authorization, dynamicAttrsList:[], entitlementshtmltablerowsv2:, approvallink:/jbpmworkflowmanagement/showrequestdetails/Manager_Approval.1068078, allrolesinrequest:, requestlink:/jbpmworkflowmanagement/showrequestdetails/Manager_Approval.1068078?reqid=3851, email:, endpoints:(), entitlementshtmltablerows:, allRejectorsComments:null, rolesshtmltablerows:, manager:sshinde, approvedByMap:[:], rolesApprovedOrRejected:[], rolename:, request_access:com.saviynt.ecm.workflow.Request_Access : 5385, entitlement_values:[], allApprovers:[], requestor:trajat, users:kpiniset, allRejectors:[], task:null, requestid:1068078, rolemap:[:], assignee:kpiniset, activityname:Grant_Access, accounts:[], user:kpiniset, curExecutionId:Manager_Approval.1068078, accessItems:[com.saviynt.ecm.workflow.Request_Access : 5385]]

 

could you please confirm what we can conclude from output Of code ${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}? 

Thanks,

Sucheta

Account name not available in list. Does account name visible on request form?(add screen shot))You need account during approval or after approval completed. 

 

 


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

Yes account name is visible in request form as access highlighted in yellow. Need account after approval completes.

suchetadineshs_0-1662639534186.png

 

${requestAccessAttributes.get('ACCOUNTNAME')}

 


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

It says no such property.

suchetadineshs_0-1662707708334.png

 

As per screenshot account name is not visible on request form & you have highlighted users email. 

If in your case email is always going to be account name then use ${user.email}


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

${user.email} returns value for which user request is raised.

EG: If request raised for user test1 for FFID FF_ELEVATED, then  ${user.email} returns  email id of test1. we need bind variable for FFID FF_ELEVATED.

Thanks!

As per variables its not exposed. Are you attaching email template on Grant block ?


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

Yes, it is on grant block.

Thanks,

Sucheta