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.

Testing Inbound Import Set API Request with ATF

gmorales2
Tera Contributor

I've got a request payload that's a JSON array of objects that will be sent as a post request to the /now/import/{stagingTableName}/insertMultiple endpoint ad-hoc.

 

I've already built the staging table (extends Import Set Row) and have a step in an ATF to send a request w/ a mock payload to the insertMultiple endpoint of the table. This step was configured with the REST explorer. 

 

To validate that the request is inserting records, I've got a Record Query step in my ATF that validates a unique field from the POST payload exists as a value in the staging table after the "Send REST Request - Inbound" step executes. The test fails at this step and I'm unsure why. I've even set the authentication to "None" in the "Send REST Request - Inbound" step. 

 

1 REPLY 1

Shaqeel
Mega Sage
Mega Sage

Hi @gmorales2 

 

Could you share the steps and failed result screenshots?

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel