We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to relate Citation to Control Objective using REST API?

Maneesh
Tera Contributor

Hi,

 

I am trying to relate a Citation to Control Objective by creating a record in the table: sn_compliance_m2m_statement_citation using REST API call (POST /api/now/table). I am passing thecitation sys_id and control objective sys_id in the body.

POST: /api/now/table/sn_compliance_m2m_statement_citation
{
    "sn_compliance_citation": "xc733912c3fb8190c5b3c8777a016193",
    "sn_compliance_policy_statement": "y7a634eedb3ca014c6a9ccfa13961138",
}

The record gets inserted in the m2m table but the citation reference field and control objective reference field are empty. The sys_ids passed never get associated together. It just creates a empty m2m record in the table.

 

Has anyone done this before or know what might be the issue with this?

 

Thanks

0 REPLIES 0