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

Requestid Binding variable for Task Discontinue Email Action.

prajakta
New Contributor III
New Contributor III

Hi Experts,

For Servicedesk based integration, we need to send notification if the ServiceDesk ticket is rejected. This will discontinue the Saviynt task. On this action the email notification should be send to requestor. Here ${requestid} binding variable is not working. Can someone please guide how can we populate the Saviynt Request ID ? 

With below config , task status 3 resolving as expected however for task status 4 its not getting resolved. Upon removing ${requestid} task status 4 email is getting resolved. 

Task <%if(task?.status==4) print "Rejection" else if (task?.status==3) print "Completion"%> notification for ${task.endpoint.endpointname} – <% if (task?.tasktype==3) print "Add" else if (task?.tasktype==8 || task?.tasktype == 2) print "Remove" %> Request <% if (task?.requestKey != null) print "for - Request ID: ${requestid} " else print ""%>

Here is the binding variable Data : 

[request:com.saviynt.ecm.workflow.ARS_Requests : 20919, task:com.saviynt.ecm.task.ArsTasks : 4950555, tasktype:New Account, manager:100344665, endpointDisplayName:Service Desk App, user:SAV2546, taskaction:New Account, requestor:100498408, tasks:com.saviynt.ecm.task.ArsTasks : 4950555, users:100352546, out:java.io.PrintWriter@7cd59cf4]

Any pointers are highly appreciated.

Thanks,

Prajakta

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

${request.processinstanceid.substring(request.processinstanceid.lastIndexOf('.')).replace('.',' ')}


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

Hello Rushikesh,

Thanks for prompt response. You are a Start.. Thanks a ton !!!

Prajakta