- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 01:12 AM
Using the REST API, I can retrieve GET the Affected CIs 'affected_cis_view' table
https://devxxxxx.service-now.com/api/now/table/affected_cis_view
However, how can I create POST new Affected CI entry in the table?
Using Create in the usual manner causes an ACL error so I assume I'm doing something wrong. I've tried Put and Patch and still get errors.
Thanks
Solved! Go to Solution.
- Labels:
-
Operational Intelligence

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 03:42 AM
Hi,
This is a relationship right. if you want to add below incident then use task_ci table.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 02:20 AM
I'm using the Table API (not sure of your question/the difference?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 02:20 AM
{
"error": {
"message": "Operation Failed",
"detail": "ACL Exception Insert Failed due to security constraints"
},
"status": "failure"
}
I assume this error is due to the way I'm Posting to the table rather than an actual ACL issue??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 02:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 02:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 04:03 AM
Hi Andrew,
I used POST and it worked for me; I gave the task and ci sys_id in the body
Incident without CI
Incident with CI
Post Method Endpoint: https://instanceName.service-now.com/api/now/table/task_ci
Post Method Body:
{"task":"4b150dd6ef01200099620fa3f82256e7","ci_item":"64a9280d3790200044e0bfc8bcbe5d65"}
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader