kumsa29

Identity Suite : Generate Direct Approval and Reject workflow links via email

Blog Post created by kumsa29 Employee on Aug 13, 2018

Identity Suite: Generate Direct Approval and Reject workflow links via email

 

Approval and Reject workflow links normally contains one dynamic information and that is a task ID.

You can retrieve the task ID in email policy using data element ( refer the link below for this purpose) and then create a link in the outgoing notification email.

 

Please use following information to read Task Id in Policy Express used for email sending.https://communities.ca.com/thread/241767125-task-session-id-in-px-policy

 

BLTH Task :  event : handleStart

 

function handleStart(blthContext, errorMsg) {

try {
    var taskID = blthContext.getSessionId();
    var now = blthContext.getSessionCreateTime();
    var df = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    blthContext.setSessionAttribute("taskID",taskID);
    blthContext.setSessionAttribute("date",df.format(now));

}
catch (exception) {
    errorMsg.reference = "Cannot set Task ID or Create DateTime";
    return false;
}
return true;
}

 

---

 

Outcomes