Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Dynamic Attribute in CreateTicketJSON

Jyoti1
Regular Contributor
Regular Contributor

hI Team

 

I am trying to pass Dynamic Attribute in CreateTicketJSON but it is not working. PLEASE HELP.

 

\"configuration_item\":\"${reqAttrs.dynCI}\"

9 REPLIES 9

nimitdave
Saviynt Employee
Saviynt Employee

Please try with below:

${requestAccessAttributes.get('DAName')}

Also if this does not work , please share the connector you are using.

Jyoti1
Regular Contributor
Regular Contributor

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] } } ] }

nimitdave
Saviynt Employee
Saviynt Employee

{
"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
]
}
}
]
}

Jyoti1
Regular Contributor
Regular Contributor

Hi Nimit

This is also not working

nimitdave
Saviynt Employee
Saviynt Employee

Please share error snippet.

Jyoti1
Regular Contributor
Regular Contributor

Error is not there but during createticket attributes are getting copied instead of attributes values

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}

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

rushikeshvartak
All-Star
All-Star

${requestAccessAttributes.get('AccountColumnOfDA')}


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

Jyoti1
Regular Contributor
Regular Contributor

this is also not working. it is showing null