Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/27/2023 12:41 PM
hI Team
I am trying to pass Dynamic Attribute in CreateTicketJSON but it is not working. PLEASE HELP.
\"configuration_item\":\"${reqAttrs.dynCI}\"
Solved! Go to Solution.
06/27/2023 08:10 PM
Please try with below:
${requestAccessAttributes.get('DAName')}
Also if this does not work , please share the connector you are using.
06/27/2023 08:47 PM
this is also not working. i am using REST Connector for servicenow createticketjson.
{ "call": [ { "name": "call2", "connection": "userAuth", "url": "https://khcdev.service-now.com/api/sn_sc/servicecatalog/items/f4779c94873ae510e9ec20e9cebb3599/order...", "httpMethod": "POST", "httpParams": "{\"sysparm_quantity\":\"1\", \"sysparm_requested_for\":\"${user.systemUserName}\",\"variables\":{\"req_for\":\"${user.email}\", \"select_application\":\"${endpoint.customproperty1}\",\"type_of_access\":\"${if(task.tasktype == 2) {return 'REMOVE';} else {return 'ADD';}}\",\"select_role\":\"${allEntitlementsValues}\", \"correlation_id\":\"${task.id}\",\"saviynt_comments\":\"provisioned bysaviynt\",\"assignment_group\":\"${endpoint.customproperty2}\",\"configuration_item\":\"${requestAccessAttributes.get('dynCI')}\"}}", "httpHeaders": { "Authorization": "${access_token}" }, "httpContentType": "application/json", "ticketidPath": "result.request_number", "successResponses": { "statusCode": [200, 201] } } ] }
06/27/2023 09:14 PM
{
"call": [
{
"name": "call2",
"connection": "userAuth",
"url": "https://khcdev.service-now.com/api/sn_sc/servicecatalog/items/f4779c94873ae510e9ec20e9cebb3599/order...",
"httpMethod": "POST",
"httpParams": "{\"sysparm_quantity\":\"1\", \"sysparm_requested_for\":\"${user.systemUserName}\",\"variables\":{\"req_for\":\"${user.email}\", \"select_application\":\"${endpoint.customproperty1}\",\"type_of_access\":\"${if(task.tasktype == 2) {return 'REMOVE';} else {return 'ADD';}}\",\"select_role\":\"${allEntitlementsValues}\", \"correlation_id\":\"${task.id}\",\"saviynt_comments\":\"provisioned bysaviynt\",\"assignment_group\":\"${endpoint.customproperty2}\",\"configuration_item\":\"${dynCI}\"}}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketidPath": "result.request_number",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
06/27/2023 09:51 PM
Hi Nimit
This is also not working
06/27/2023 10:06 PM
Please share error snippet.
06/27/2023 10:20 PM
Error is not there but during createticket attributes are getting copied instead of attributes values
06/28/2023 12:12 AM
Hi @Jyoti1 can you try the below variable? kindly replace the customproperty3 below with the account attribute you have mapped to your dynamic attribute.
${reqAttrs?.customproperty3}
06/28/2023 04:20 AM
${requestAccessAttributes.get('AccountColumnOfDA')}
06/28/2023 12:22 PM
this is also not working. it is showing null