Successful status 200 returned from REST API PUT inserting additional comments...but it worked twice on one CHG?

LJ3
Kilo Expert

We're using a PUT REST API request with a user who has the snc_platform_rest_api_access and rest_api_explorer roles, and the "support" group.

When updating the comments using a raw:

{

"data": {

"comments": "mycomment"

}
}

 

The first two times updating a ticket with the "support" group as assignment group it worked, and now every time it returns a status 200 ok still, but nothing is getting written to the event log or reaching the ticket. I'm worried we are hitting PRB933155 as per KB0623936 but I've added an update through the UI and it's not posting again?

I can write to the changes fine using the rest api explorer.

Any ideas will be greatly appreciated!

1 ACCEPTED SOLUTION

LJ3
Kilo Expert

The issue was with a Read-Only tick on the state field due to our customised change workflow. Thanks though!

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I believe you would require to follow what is given in the knowledge article since your issue is similar to the one mentioned

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

jacob_kimball
ServiceNow Employee
ServiceNow Employee

A couple of thoughts.  First, have you tried the workaround indicated in the KB article by using a web services import set and transform in to the incident table instead of direct insert?  Second, have you taken a look at the actual sys_journal table to see if the updates are actually in there and it's more of a activity viewer/history/caching type of issue? 

LJ3
Kilo Expert

The issue was with a Read-Only tick on the state field due to our customised change workflow. Thanks though!