Is it possible to dynamically get the Import Set generated when a Scheduled Import runs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 11:14 AM
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!
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 11:28 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 11:29 AM
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
Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg
Regards
Sulabh Garg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2022 11:31 AM
Hi,
You can get it in pre/post import script.
PFA.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2022 05:02 PM
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