- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 11:42 AM
Hello,
i am testing on a dev environment.
I have added in Map Transform a onComplete script to send an Event:
i tested these 2 methods:
var e = new GlideEvent("my_import_servers_1", "", "", "");
e.insert();
and tested also:
gs.eventQueue('my_import_servers_1', "", "", "");
In SystemLogs/Events i well see my Event after the transform so it seems to work.
In The Flow designer i have added a trigger on this type of Event:
But this is never triggered. But if i enter the event and update it of click on reprocess Event, the flow is well triggered.
Am i missing something when i create the Event in javascript in onComplete?
Thank you for your help
Solved! Go to Solution.
- Labels:
-
flow designer
-
Notifications
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 01:28 PM
Oh ok,
You can take a look at following link:
So, instead add an event to trigger the flow, you can execute the flow with script using the flow API
Hope it helps,
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 01:08 PM
Hi,
Maybe you can try with trigger = created, instead of created/updated.
Hope it helps,
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 01:18 PM
Hello,
Thank you for your reply. I already did it at the beginning but just to be sure i just retried. No difference.
Driving me nuts, it's not triggering the flow (i am waiting a long time to be sure the queue is not busy) but if i just click on 'Reprocess Event' the flow there is triggered and processed.
Not sure what is done when reprocessing that is not done with:
gs.eventQueue("my_import_servers_1", current, import_set.sys_id, map.sys_id);
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 01:28 PM
Oh ok,
You can take a look at following link:
So, instead add an event to trigger the flow, you can execute the flow with script using the flow API
Hope it helps,
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2020 02:09 PM
Sorry didn't see your reply, i had to click on show reply.
I will have a look thanks.