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 role customproperty in email template

Padmavathi
Regular Contributor II
Regular Contributor II

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

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

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:


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

Hi @rushikeshvartak 

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

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

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

Padmavathi
Regular Contributor II
Regular Contributor II

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

${request_access?.accessKey?.customproperty1}


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