Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/30/2024 08:32 AM
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
Solved! Go to Solution.
08/30/2024 08:55 AM
${request.processinstanceid.substring(request.processinstanceid.lastIndexOf('.')).replace('.',' ')}
08/30/2024 09:26 AM
Hello Rushikesh,
Thanks for prompt response. You are a Start.. Thanks a ton !!!
Prajakta