The CreatorCon Call for Content is officially open! Get started here.

Table API setting empty values a scenario?

Kiddy
Tera Guru

Hi folks,

I am using Table api Post to create Incident

I am facing issue when i pass assignment group in the payload inc gets created with empty CI,Assignemnt group and parent

when i remove Assignment group from payload everything works CI and parent gets populated for with same data

Believing assignment group is culprit i tried creating manually and through background script ,its working perfectly fine with same data

 

how can i further troubleshoot Table Rest api to get the root cause of this behavior

 

i am using below json payload

Doesnt work gives parent,CI,Assignment group empty, creates incident but with empty CI,AG,Parent

{
"caller_id": "SysId",
"short_description": "Test Ticket ",
"description": "Test Ticket ",
"assignment_group": 'SysId',
"cmdb_ci": 'SysId',

"parent":"SysId"
}

 

works fine and create inc with data

{
"caller_id": "SysId",
"short_description": "Test Ticket ",
"description": "Test Ticket ",
"cmdb_ci": 'SysId',

"parent":"SysId"
}

9 REPLIES 9

RaghavSh
Kilo Patron

This should not cause any issues but are you using REST API explorer to test this or Postman or any third party tool?


Raghav
MVP 2023
LinkedIn

@RaghavSh 

Trying from restapi explorer also tried postman

Javeria
Tera Contributor

@Kiddy ,

Just tested on my PDI records; they are getting created. Maybe you are passing an incorrect sys_id.

Javeria_0-1758365441959.png

Javeria_1-1758365475097.png

 

Regards, Javeria

Keep learning & growing!

@Javeria 

 

Yes for me its working fine in PDI ,how can we identify whats causing this issue?