Createticket json: { "call": [ { "name": "call1", "connection": "ServiceNow", "url": "https://XXXXXXXX.service-now.com/api/now/table/sc_request", "httpMethod": "POST", "httpParams": "{\"opened_by\":\"${requestor}\",\"requested_for\":\"${user.username}\",\"assignment_group\":\"Application Support\",\"short_description\":\"This request has been created from Saviynt Security Manager IAM system\",\"RequestID\":\"${if(task.requestKey!=null){task.requestKey?.processinstanceid?.substring(task.requestKey?.processinstanceid?.indexOf('.') + 1, task.requestKey?.processinstanceid?.length())}else if(task.requestKey==null){task.id}}\",\"description\":\"${if(task.tasktype==1 || task.tasktype==3){'Complete this request to create account for ' +user.firstname+' ' +user.lastname +' in ' +task.endpoint?.displayName +' application along with access '+allEntitlementsValues}else if(task.tasktype==2 && (allEntitlementsValues==null || allEntitlementsValues.isEmpty() || allEntitlementsValues=='')){'Complete this request to remove account for ' +user.firstname+' ' +user.lastname +' in ' +task.endpoint?.displayName +' application as all accesses removed'}else if(task.tasktype==2 && task.source=='REQUEST'){'Complete this request to remove access for ' +user.firstname+' ' +user.lastname +' in ' +task.endpoint?.displayName +' application with access '+allEntitlementsValues}else if (task.source=='CERTIFICATION' && task.tasktype==2){'This request is to remove access as part User Manager Certification for ' +user.firstname+' ' +user.lastname +' in ' +task.endpoint?.displayName +' application with access '+allEntitlementsValues}else {'Complete this request to remove account for ' +user.firstname+' ' +user.lastname +' in ' +task.endpoint?.displayName +' application along with access '+allEntitlementsValues}}\",\"application\":\"${task.endpoint?.displayName}\"}", "httpHeaders": { "Authorization": "${access_token}" }, "httpContentType": "application/json", "ticketidPath": "result.number", "successResponses": { "statusCode": [ 200, 201 ] } } ] } ___________________________ TicketStatusJSON ------------------------------- { "call": [ { "name": "call1", "connection": "ServiceNow", "url": "https://XXXXXX.service-now.com/api/now/table/sc_request?sysparm_query=number=${ticketID}&sysparm_limit=1&sysparm_display_value=true", "httpMethod": "GET", "httpHeaders": { "Authorization": "${access_token}" }, "httpContentType": "application/json", "ticketStatusPath": "result[0].state", "ticketStatusValue":[ "Closed Complete", "closed", "CLOSED", "Closed" ], "disContinueStatusValue":[ "Closed Incomplete", "closed incomplete", "CLOSED INCOMPLETE" ], "successResponses": {"statusCode":[200,201]} } ] }