- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 11:32 AM
I'm attempting to add multiple affected CIs to an existing request. Currently I run:
curl -v "https://my-instance-now.com/api/now/table/task_ci" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data '{"ci_item":"CI1", "task":"xxxxx"}' \
--user un:pw
and it works just fine. I was also able to successfully recreate the functionality in powershell. The issue I'm having now is figuring out if it's possible to add multiple ci_items in one call. No amount of joining json together is working. Only one ci_item is every picked up. Is it possible to add multiple CIs with a single call or does the functionality not exist?
Thanks for any suggestions!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 11:33 AM
CI field is a reference type and can accept only once value.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 11:33 AM
CI field is a reference type and can accept only once value.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 11:55 AM
Thank you for the clarification!