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 API with multi row variable set

Shruti12
Tera Contributor

I am trying to send a multi-row variable set to the Import set API and transform it to sc_task using the SC Task API staging table. Does import set api support multi-row variable sets? I tried using a column with string and list types with reference to Variable set table but it didn't work.

 

Any suggestions?

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Shruti12 

 

https://www.servicenow.com/community/developer-forum/service-catalog-script-api-and-multi-row-variab...

 

https://www.servicenow.com/community/itsm-forum/how-to-insert-values-of-multi-row-variables-through-...

 

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

Thanks for the response Atul. I am looking for a specific OOTB API - 'Import Set API' to work with MRVS. The incoming payload is staged and then transformed to the respective table and I don't see an option to make it work with MRVS except staging that variable as a string and then converting to JSON object on the script before transforming. 

 

Please let me know if you know a better way of achieving it.

 

Thanks,

Shruti

Hi @Shruti12 

 

I think this is the only solution. 

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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