Mark W
Mark W

Reputation: 19

Issue populating assignment_group in servicenow via REST API

I am trying to create Servicenow incident ticket using REST API. Here is the link and body: https://<mydomain>.service-now.com/api/now/table/incident and body:

{
"short_description":"testing short description",
"assignment_group":"Software",
"urgency":"Medium",
"impact": "Low",
"caller_id":"John Doe",
"description":"testing description"
}

Incident ticket is getting created with all fields populated as requested except assignment_group and description fields. I know these are reference fields. I tried all combination but information is not getting populated for these two fields. Any one has any suggestions? I tried for assignment_group the sys_id value also like "assignment_group":"4ikilo9f1bb43740ddfa315bcd4kmj89" and "assignment_group":{"sys_id":"4ikilo9f1bb43740ddfa315bcd4kmj89"} etc.

Upvotes: 0

Views: 2448

Answers (1)

Harshith N
Harshith N

Reputation: 1

pass the id of the assignment group within the API call than directly giving the name of the group, this worked for me :)

Upvotes: 0

Related Questions