Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Wasif
Tera Guru
Tera Guru

For folks well-versed with platform's out-of-the-box API, Import Set API, they would know that this can be used in integrations where the implementation may require additional data manipulation using the Transform maps...

However, one important thing to note w.r.t. application calling this api and the response code replied from ServiceNow for the below particular scenario.

This API will reply a 200 response code if the record is successfully created in the Import table, despite failing in the transformation logic; this is an important use case as the calling application may assume all is well and the job got done, but in reality it failed in ServiceNow.

To work around this, the calling app not only needs to rely on the response code, but also the 'status' key in the response body and consider a success if the response code is 200 and there is no error in the response body.

1 Comment