Run transform in server side script

sumeet_n
Kilo Guru

Hello All,

Is there any way to "run transforms" in server side script? any APIs?

14 REPLIES 14

how did you get these methods? any link to documentation?


i don't thing these methods are documented anywhere, i found out the methods by exploring the SN classes.


antin_s
ServiceNow Employee
ServiceNow Employee

Hi Sumeet,



If you have a Scheduled Import, you can do it with the below scripts.



var importset = new GlideRecord('scheduled_import_set');


importset.get('name', 'SCHEDULED-IMPORTSET-NAME');


SncTriggerSynchronizer.executeNow(importset);



Scheduled Import Set - Scheduling Data Imports - ServiceNow Wiki



Hope this helps. Mark the answer as correct/helpful based on impact.



Thanks


Antin


Thank you Antin I can now work on implementing this for my future importsets. I greatly appreciate the feedback. It has been very helpful for me.


lincy
Kilo Contributor

how can i run multiple transform maps on a datasource?