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.

Import set rest api runs all the associated transform maps but not only the specified one

zhanglixin
Tera Expert

1. when I create a import set rest api, I specify a transform map. For my understanding, the rest api should only run the specified transform map. 

zhanglixin_0-1704845762104.png



2.But confirming the  running result, it seems that  it runs all the two transform maps. I don't know why.

zhanglixin_1-1704845945253.png

 

2 REPLIES 2

SanjivMeher
Mega Patron
Mega Patron

I dont think you can pass the transform map in the request api. You need to have a onStart or onBefore script to ignore the import using the other transform map based on data coming via the import set api.

 

Discussion in below thread should help.

https://www.servicenow.com/community/developer-forum/conditional-transform-maps-for-import-set-api/m...


Please mark this response as correct or helpful if it assisted you with your question.

SanjivMeher, Thank you for replying.
If the import set rest api will run all the transform maps anyway, I don't understand the intention why we can specify one transform map in the parameter.