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

Add Firstname of Delegate user in the mail contain

PuspanjaliM
New Contributor II
New Contributor II

As support document says it is sending approval mail to both Parent user and Delegate user.

But we are expecting FirstName of delegate user as salutation of mail, if assignee has a active delegate user.

I'm using the below condition ,but it is not working.

Dear <% if (assignee.userkey==delegates.userkey)print "${delegateuser.firstname}"
else print "${assignee.firstname}"%>,

Could team help me with the condition.

6 REPLIES 6

Darshanjain
Saviynt Employee
Saviynt Employee

HI @PuspanjaliM 

can you try with below

Dear <% if ${assignee.id == delegates.id} print "${delegateuser.firstname}"
else print "${assignee.firstname}"%>,

 

Thanks

Darshan

PuspanjaliM
New Contributor II
New Contributor II

Hi Darshan,

I tried a send simple mail by adding delegate firstname in the mail contains but it is not working

Mailtemplate.png

Although mail is delivered to both parent and delegate user ,but in mail contains it's sending error message

Mail error.png

In the logs as well ,I can see the same error

IGA ERROR DEV.png

Could you please confirm me, does this binding "${delegateuser.lastname}"support in approval mail to have the firstname of delegate?

Use below code in Email body to find exposed variables 

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

Hi Rushikesh,

Thanks for the above info about body.

I used that ,it's looks like approval mail contains doesn't support binding for delegate user

Below is the list of all binding which I received after I use the above code it's  containing info about requestor ,assignee ,app ,role ,owner but not delegate user

 

ServiceAccountOwnerMap = [:]
entitlements = [CN=Confluence_Role_MO_User,OU=Azure AD,OU=Security,OU=Groups,OU=IGA-Dev,DC=mfltest,DC=co,DC=uk]
accessapprovers = com.saviynt.ecm.workflow.Access_Approvers : 1609
jbpm_activity_name = Manager_validation
allApproversComments = null
fullrowhtmltablerows =
listofallrolesinrequest = []
entitlementshtmltablerowsv2 = ConfluenceApps Confluence_Role_MO_User [StartDate-(17 May 2023 08:50)UTC [05/17/23 UTC -TestProd TestProd1(TestProdTE)] test business justification
entitlementshtmltablerowsv3 = ConfluenceApps Confluence_Role_MO_User [StartDate-(17 May 2023 08:50)UTC test business justification
ACCOUNTKEY = 37631
ServiceAccountType =
requestlink = null/jbpmworkflowmanagement/showrequestdetails/MO_JSMApp_AutoApproval_Workflow.760923?reqid=1047
allRejectorsComments = null
rolesApprovedOrRejected = []
rolename =
request_access = com.saviynt.ecm.workflow.Request_Access : 1302
users = TestProdTE
allRejectors = []
requestid = 760923
rolemap = [:]
baseUrlForEmail = https://release-n-plus-one.saviyntcloud.com/ECM
assignee = SURAJITP
activityname = Manager_validation
ServiceAccountFlag = false
request = com.saviynt.ecm.workflow.ARS_Requests : 1047
exceptionCount = 0
fullhtmlassignedrows =
requestkey = 760923
roles = null
rejectedByMap = [:]
out = java.io.PrintWriter@7b566342
assigneemanager = ElliceBi
endpoint = ConfluenceApps
requesttype = Add
dynamicAttrsList = []
approvallink = null/jbpmworkflowmanagement/showrequestdetails/MO_JSMApp_AutoApproval_Workflow.760923
allrolesinrequest =
email =
endpoints = (ConfluenceApps)
entitlementshtmltablerows = ConfluenceApps Confluence_Role_MO_User
rolesshtmltablerows =
manager = SURAJITP
approvedByMap = [:]
ACCOUNTNAME = TestProdTE
entitlement_values = [CN=Confluence_Role_MO_User,OU=Azure AD,OU=Security,OU=Groups,OU=IGA-Dev,DC=mfltest,DC=co,DC=uk]
allApprovers = []
requestor = TestProdTE
ENDPOINT = 44
accounts = [TestProdTE]
user = TestProdTE
curExecutionId = MO_JSMApp_AutoApproval_Workflow.760923
accessItems = [com.saviynt.ecm.workflow.Request_Access : 1302, com.saviynt.ecm.workflow.Request_Access : 1302]
[ServiceAccountOwnerMap:[:], entitlements:[CN=Confluence_Role_MO_User,OU=Azure AD,OU=Security,OU=Groups,OU=IGA-Dev,DC=mfltest,DC=co,DC=uk], accessapprovers:com.saviynt.ecm.workflow.Access_Approvers : 1609, jbpm_activity_name:Manager_validation, allApproversComments:null, fullrowhtmltablerows:, listofallrolesinrequest:[], entitlementshtmltablerowsv2: ConfluenceApps Confluence_Role_MO_User [StartDate-(17 May 2023 08:50)UTC [05/17/23 UTC -TestProd TestProd1(TestProdTE)] test business justification , entitlementshtmltablerowsv3: ConfluenceApps Confluence_Role_MO_User [StartDate-(17 May 2023 08:50)UTC test business justification , ACCOUNTKEY:37631, ServiceAccountType:, requestlink:null/jbpmworkflowmanagement/showrequestdetails/MO_JSMApp_AutoApproval_Workflow.760923?reqid=1047, allRejectorsComments:null, rolesApprovedOrRejected:[], rolename:, request_access:com.saviynt.ecm.workflow.Request_Access : 1302, users:TestProdTE, allRejectors:[], requestid:760923, rolemap:[:], baseUrlForEmail:https://release-n-plus-one.saviyntcloud.com/ECM, assignee:SURAJITP, activityname:Manager_validation, ServiceAccountFlag:false, request:com.saviynt.ecm.workflow.ARS_Requests : 1047, exceptionCount:0, fullhtmlassignedrows:, requestkey:760923, roles:null, rejectedByMap:[:], out:java.io.PrintWriter@7b566342, assigneemanager:ElliceBi, endpoint:ConfluenceApps, requesttype:Add, dynamicAttrsList:[], approvallink:null/jbpmworkflowmanagement/showrequestdetails/MO_JSMApp_AutoApproval_Workflow.760923, allrolesinrequest:, email:, endpoints:(ConfluenceApps), entitlementshtmltablerows: ConfluenceApps Confluence_Role_MO_User , rolesshtmltablerows:, manager:SURAJITP, approvedByMap:[:], ACCOUNTNAME:TestProdTE, entitlement_values:[CN=Confluence_Role_MO_User,OU=Azure AD,OU=Security,OU=Groups,OU=IGA-Dev,DC=mfltest,DC=co,DC=uk], allApprovers:[], requestor:TestProdTE, ENDPOINT:44, accounts:[TestProdTE], user:TestProdTE, curExecutionId:MO_JSMApp_AutoApproval_Workflow.760923, accessItems:[com.saviynt.ecm.workflow.Request_Access : 1302, com.saviynt.ecm.workflow.Request_Access : 1302]]

Please raise idea ticket for enhancement 


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

Hi @PuspanjaliM 

 

As i further checked on the request, the ${delegateuser.email} variable is only supported for the email template that is used to notify the parent and delegate users with details about their delegation. This template is set in Global Configurations from Admin > Global Configurations > Request > Delegate Email Template.
For request email templates you will have to use ${assignee.email} variable and it will send email to both delegate approver and the original approver.

 

Thanks

Darshan