Affected CIs - 'affected_cis_view' table

Andrew Catchpol
Giga Contributor

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

 

 

 

 

 

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,


This is a relationship right. if you want to add below incident then use task_ci table.

Thanks,
Ashutosh

View solution in original post

14 REPLIES 14

Andrew Catchpol
Giga Contributor

@Ankur Bawiskar 

I'm using the Table API  (not sure of your question/the difference?)

Andrew Catchpol
Giga Contributor
{
  "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??

Andrew Catchpol
Giga Contributor

@Ankur Bawiskar 

 

I'm looking at the Incident table and trying to add an entry here....

find_real_file.png

Andrew Catchpol
Giga Contributor

And whats the difference between the two Affect CIs tables?

find_real_file.png

Hi Andrew,

I used POST and it worked for me; I gave the task and ci sys_id in the body

Incident without CI

find_real_file.png

Incident with CI

find_real_file.png

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

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader