Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/19/2024 07:30 AM
Hi Team,
We have requirement of using customproperty3 value from roles in email template. the email template is attached to the workflow.
Can anyone help us to get the binding variable for roles customproperty3
Thanks in advance!
Regards,
Padmavathi
09/19/2024 10:23 AM
Please share 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 {RVkey,RVvalue -> println "$RVkey ------- $RVvalue" + "" + "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:
09/19/2024 11:42 AM - edited 09/19/2024 11:42 AM
Thanks for the response!
I tried by keeping the binding variable to get the available variable names, here is the output i received and i didn't find anything specific for customproperty. can you please help me with the variable ?
entitlements = [WebEx Recording]br> request = com.saviynt.ecm.workflow.ARS_Requests : 2568br> jbpm_activity_name = Class Validation Failed - Reject Accessbr> exceptionCount = 0br> allApproversComments = nullbr> fullhtmlassignedrows = br> requestkey = 9090594br> rejectedEntitlementsOwners = []br> roles = nullbr> rejectedByMap = [:]br> fullrowhtmltablerows = PersonnaTestRole1 Test Role for Personna 2024-09-19 02:35:00 2024-10-22 08:00:03 br> out = java.io.PrintWriter@35cb03ecbr> listofallrolesinrequest = [PersonnaTest_Role1]br> requestedby = padmavathi.venkata@xxx.combr> assigneemanager = gokul.nandeeswaranbr> approvedEntitlementsOwners = []br> requesttype = Enterprise Rolebr> dynamicAttrsList = []br> entitlementshtmltablerowsv2 = br> entitlementshtmltablerowsv3 = br> approvallink = null/jbpmworkflowmanagement/showrequestdetails/PersonnaAssignment_WF.9090594br> allrolesinrequest = PersonnaTestRole1br> requestlink = null/jbpmworkflowmanagement/showrequestdetails/PersonnaAssignment_WF.9090594?reqid=2568br> email = br> endpoints = ()br> entitlementshtmltablerows = Azure AD Provisioning (BYOI) WebEx Recording br> allRejectorsComments = nullbr> rolesshtmltablerows = PersonnaTestRole1 Test Role for Personna br> manager = gokul.nandeeswaranbr> approvedByMap = [:]br> rolesApprovedOrRejected = [PersonnaTest_Role1]br> rolename = PersonnaTestRole1br> request_access = com.saviynt.ecm.workflow.Request_Access : 2748br> entitlement_values = [WebEx Recording]br> allApprovers = []br> requestor = padmavathi.venkata@xxx.combr> users = elenaug12@xxx.combr> allRejectors = []br> task = nullbr> requestid = 9090594br> rolemap = [145:PersonnaTest_Role1]br> baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECMbr> assignee = elenaug12@xxx.combr> activityname = Class Validation Failed - Reject Accessbr> accounts = []br> user = elenaug12@xxx.combr> curExecutionId = PersonnaAssignment_WF.9090594br> accessItems = [com.saviynt.ecm.workflow.Request_Access : 2748]br>
Thanks,
Padmavathi
09/19/2024 11:55 AM
${rolename.customproperty1}
entitlements = [WebEx Recording]
request = com.saviynt.ecm.workflow.ARS_Requests : 2568
jbpm_activity_name = Class Validation Failed - Reject Access
exceptionCount = 0
requestkey = 9090594
roles = null
fullrowhtmltablerows = PersonnaTestRole1 Test Role for Personna 2024-09-19 02:35:00 2024-10-22 08:00:03
listofallrolesinrequest = [PersonnaTest_Role1]
requestedby = padmavathi.venkata@xxx.com
assigneemanager = gokul.nandeeswaran
requesttype = Enterprise Role
approvallink = null/jbpmworkflowmanagement/showrequestdetails/PersonnaAssignment_WF.9090594
requestlink = null/jbpmworkflowmanagement/showrequestdetails/PersonnaAssignment_WF.9090594?reqid=2568
entitlementshtmltablerows = Azure AD Provisioning (BYOI) WebEx Recording
rolename = PersonnaTestRole1
request_access = com.saviynt.ecm.workflow.Request_Access : 2748
user = elenaug12@xxx.com
curExecutionId = PersonnaAssignment_WF.9090594
accessItems = [com.saviynt.ecm.workflow.Request_Access : 2748]
09/19/2024 12:06 PM
Thanks for the quick response @rushikeshvartak
I have used ${rolename.customproperty3}, the email is failed with the reason "Error - No such property: customproperty3"
Thanks,
Padmavathi
09/19/2024 12:20 PM
${request_access?.accessKey?.customproperty1}
09/19/2024 11:52 PM - edited 09/19/2024 11:58 PM
AS suggested, I have tried with ${request_access?.accessKey?.customproperty3}, got the below error
AS per the suggestion I have replaced accessKey with accesskey (${request_access?.accesskey?.customproperty3}), then same error came as yesterday
Thanks,
Padmavathi
09/29/2024 09:52 PM
@Padmavathi try
roles.role_name.customproperty3
or
roles.rolename.customproperty3