REST API opened_at field not populated

mauricio23
Mega Expert

Greetings!

Using the REST API, we are inserting records into the Incident Table and the opened_at field is not populating at all.

We tried the following without success

  • We tried a few different time formats, including this format: 2013-07-23 18:01:17
  • We tried different time zones
  • We tried passing over a blank value and let the system default the value

I checked the field in ServiceNow and it definitely has a default value. Any ideas would be appreciated. Thanks!

screenshot1435643219@1X.png

1 ACCEPTED SOLUTION

Turns out it was a permission issue. I added the role, "rest_service" and now that field populates correctly.



screenshot1436323651@2X.png


View solution in original post

8 REPLIES 8

mauricio23
Mega Expert

more details - I am thinking it is a permission issue.



Using the REST API Explorer:



  • For the REST API user, it fails to populate
  • Using my account ( admin ), it populates correctly.

Turns out it was a permission issue. I added the role, "rest_service" and now that field populates correctly.



screenshot1436323651@2X.png


The rest_service role is deprecated. The description on the role says it is no longed needed to access the REST API. Has anyone else had this issue after upgrading to Jakarta?

I am having the same issue in Jakarta. Do you happen to have a workaround?