Is it possible to add more than one "Affected CI" in a single API call?

Louis26
Kilo Contributor

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!

1 ACCEPTED SOLUTION

Prateek kumar
Mega Sage

CI field is a reference type and can accept only once value.

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/field-administrat...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

View solution in original post

2 REPLIES 2

Prateek kumar
Mega Sage

CI field is a reference type and can accept only once value.

https://docs.servicenow.com/bundle/newyork-platform-administration/page/administer/field-administrat...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Thank you for the clarification!