I am looking for a way to Execute REST integration via script Includes

alexgg57
Tera Expert

We have a third-party data integration in scheduled_import_set table.
Please see attached screenshot.

I wish to find the way to execute one of such record from Script Includes.

How to find what function is hidden behind the "Execute Now" button?

Thanks,

Alex.

3 REPLIES 3

James Chun
Kilo Patron

Hi @alexgg57,

 

You should be able to find it in the Data Source field/record.

 

Cheers

alexgg57
Tera Expert
		var grJob = new GlideRecord("sysauto");
		grJob.addQuery("sys_id", "9dfbdbd847f90690c1517351e36d432e");
		grJob.query();
		if (grJob.next()) {
			gs.info('Record found');
			grJob.update();
			SncTriggerSynchronizer.executeNow(grJob);
			//action.setRedirectURL(grJob);
		}

Here is my script I am trying to use in hope to "hit" the "Execute Now" button, but it seems not working... 
Any thought?

 

 

 

alexgg57
Tera Expert

Anyone has a clue?