xl8bot
1
Originally asked by Andrew on 09 February 2021 (original question)
Hello,
I am getting below payload from Jira: request item with catalog tasks variables
“key”: “ITC-288”,
“summary”: “IMAC-Install Client: [NHH43040 (CP-243627)]”,
“created”: 1612437589111,
“IBM Technician”: {
"id": 11415,
"name": "IBM Technician",
"type": "OPTION",
"value": {
"id": "12251",
"sequence": 1,
"value": "no",
"disabled": false,
"childOptions": \[]
}
},
"Room": {
"id": 11444,
"name": "Room",
"description": "",
"type": "STRING"
},
key, summary, created are request fields, while Room and IBM Technician are variables.
Variables are not like normal fields. The table that is used is sc_item_option_mtom, which just links sc_req_item and sc_item_option.
Could anyone help me how my incoming script in SN should look like to save fields and variables ?
xl8bot
2
Answer by Francis Martens (Exalate) on 02 March 2021
Hi Andrew
The question has been partially responded on
Retrieve a list of variable for a RITM (old community)
Buried down in the comments, you find a reference to ‘updateVariables.groovy’ which contains an example how to update the variables. Check the corresponding snippet
https://stash.idalko.com/snippets/b91ded48c3cd48af8b162b0489e6c782
Let me know
xl8bot
3
Answer by Mariia Horbatiuk on 10 February 2021
Hello Andrew,
Can you please elaborate more on the expected result?
Please refer to this support article to know more about the field sync for ServiceNow: https://docs.idalko.com/exalate/x/IAAhAg
Hope this helps
Comments:
Francis Martens (Exalate) commented on 02 March 2021
Mariia Horbatiuk
The request variables are a more advanced use case. Check the other question (here). We should add support for it in the product.
xl8bot
Closed
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.