Is it possible to dynamically get the Import Set generated when a Scheduled Import runs?

Taylor W
Mega Expert

Hello,

We are kicking off a Scheduled Import via a script. Is it possible to dynamically get the Import Set which is generated by the Scheduled Import? It is my understanding that gs.executeNow() returns a trigger ID. Any help would be great. Thanks!

4 REPLIES 4

DrewW
Mega Sage
Mega Sage

More information on why you need this information would be helpful.  If you are trying to send an email or record the import set someplace you can just use the import set scripts to do all of that.  So knowing why may help in offering a different way to go about whatever it is you are trying to do.

 

Sulabh Garg
Mega Sage
Mega Sage

Hello

To get the import set name which get generated from scheduled import, you can use the "Import_set" object and get the number of Import set number.

use the syntax like this - 

var x = import_set.number;

Multiple JavaScript objects are available in the Scheduled Data Import Pre script and Post script fields.

Object names
1)cancel
2)import_set
3)data_source

For more info, See Scheduled data import scripting options

 

find_real_file.png

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,

You can get it in pre/post import script.

PFA.

find_real_file.png

 

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Regards,
Saurabh

 

 

 

 

 


Thanks and Regards,

Saurabh Gupta

If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Regards,
Saurabh

 

 


Thanks and Regards,

Saurabh Gupta