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

REST api inbound request payload

chitrar
Kilo Explorer

We are integrating with a vendor using OOTB REST API. We want to fetch the inbound request and   change the values before incident is inserted . For example state,impact,priority. We want to loop the field and values into our mapping table and get the proper value for the field in our instance.

5 REPLIES 5

Gurpreet07
Mega Sage

You could use scripted web services.


Scripted Web Services - ServiceNow Wiki


chitrar
Kilo Explorer

No way to use OOTB rest api and play with the payload?


Gurpreet07
Mega Sage

Only in business rules. In there you could check if the update is not from active user then it will be through some web service or transform maps.


if(!gs.isInteractive()){   //update is using web service call


                  // update values from mappings table


}


in the business rule i need to do like


current.state="my state value";


is this rite?