I want to automatically modify the information received via REST API.

Kazuki Aita
Tera Contributor

Hi All.

 

When creating a record in the em_event table using the REST API, the record is created with the time_of_event advanced by +9 hours. (The ServiceNow system time is JST)
Is there a way to automatically modify the data (subtracting 9 hours from the time_of_event) on the ServiceNow side upon receipt via the REST API and then create the record?

1 REPLY 1

Gurpreet07
Mega Sage

In case you are parsing the payload and then manually setting the values into fields then you need to use   setDisplayValue for date time / date / time fields.