- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 12:24 PM
Hi guys,
I have a flow designer that creates an incident when a specific transform map fails. But instead of creating an incident right away, I would like to re-process it or re-execute the scheduled job. Is there a way to call the UI Action or is there another way
Thanks in advance.
Regards.
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 12:45 PM
Hi,
You can use the custom Flow Action with the Script Step.
In the Script Step the scheduled job can be invoked i.e. like in this thread:
UI Action button to run a Scheduled Job? - Developer Community - Question - ServiceNow Community
The Script Step is executed server-side, so the similar code as above can be directly placed there.
Best Regards,
Marcin
If my answer helped you in any way, please mark this answer as helpful and correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2022 12:45 PM
Hi,
You can use the custom Flow Action with the Script Step.
In the Script Step the scheduled job can be invoked i.e. like in this thread:
UI Action button to run a Scheduled Job? - Developer Community - Question - ServiceNow Community
The Script Step is executed server-side, so the similar code as above can be directly placed there.
Best Regards,
Marcin
If my answer helped you in any way, please mark this answer as helpful and correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 03:43 AM
Thanks Marcin!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 12:16 AM
Hello is there any way to executed schedule import in flow designer. I have tried using custom action hers is script below but it is executed multiple execution for that scheduled import.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 04:30 AM
This script worked for me from workflow on scheduled import execution:
var exportGr = new GlideRecord("scheduled_import_set");
exportGr.addQuery("sys_id", "scheduled_import_sys_id_here");
exportGr.query();
if (exportGr.next()) {
var import_sys_id = gs.executeNow(exportGr);
// SncTriggerSynchronizer.executeNow(exportGr);
}
Built the workflow based on this post: Data load and transform via Catalog Item