- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 03:12 AM
Hay,
i have a scheduled Import with a Condition.
I i use this without the Option run after Parent, it works an runs only on Friday
answer = checkTime();
function checkTime() {
// should only run on Friday after Comparex Data - Load
var gdt = new GlideDateTime();
if ((gdt.getDayOfWeekLocalTime() == 5)) {
gs.log("SAM Software Global SCCM Data - Load: Scheduled Job will be started!");
return true;
}
gs.log("SAM Software Global SCCM Data - Load: Scheduled Job does not start today!");
return false;
}
But now it has to be sure the this Import runs only after an other Import.
The Problem now is that always the Parent is complete (Parents runs daily), this Import runs also.
Why does this condition does not work with the Option run after Parent.
It should ran after Parent, but only on Friday.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2020 03:25 AM
HI,
The condition will be skipped if run after parent is selected.
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2020 01:17 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2020 05:24 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader