How to create Import set table and Transform maps programmatically

Nishu Bansal
Kilo Explorer

Hi,

I have been using Table APIs to create and update change request. I have been informed to use Import sets for updating data. I am trying to find a way to automate creation of import set tables and transform maps so that by simply calling APIs we can update the table (just like we have experience with using Table APIs).

Can someone tell me what is the API to create Import set table and Transform maps? 

2 REPLIES 2

Abhijeet14
Mega Expert

Hi,

 

Refer the below link

https://docs.servicenow.com/integrate/inbound_rest/concept/c_ImportSetAPI.html

 

Regards,

Abhijeet Bangera

www.dxsherpa.com

 

 

Raj68
Mega Guru

Hi Nishu,

Please check schedule job ,OOTB there is a scheduled job in your instance called: "Asynchronous Import Set Transformer" that does some similar actions - causes and import set to get processed. You may want to look over that script and see if there is anything that you can pull over to use as well.

Just a caution that it uses some "Packages" calls into servicenow java code. If you reuse those functions and ServiceNow deprecates or removes them, your code will break.

 

NOTE: Mark correct or helpful if it helps you.

 

Warm Regards,

Raj patel