Custom subflow to Fire Event

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
Trying to create a subflow that accepts a group name, Event Name and Record.
The Event Name input is a string.
But the "Fire Event" reports Event name is blank or similar.
If you hard code the event name it works fine. But that makes a subflow kind of pointless.
I have seen articles say you need to make the input a reference filed to the "sysevent_register" table. But this isn't an option for me? (This is a scoped application).
Has anyone made this work?
Thanks...Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@Gary Fawcett1 I was trying to think of a workaround solution as the event registry table is not available in scoped application. You found a workaround but this could still be used in some other solution.
You can still pass the event as string and use script in the "Fire Event" action to look for the event object.
// To be called in the Fire event action ehere event is selected.
var ev = new GlideRecord('sysevent_register');
ev.addQuery('event_name', fd_data.subflow_inputs.event);
ev.query();
if(ev.next()){
return ev;
}
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@Gary Fawcett1 Is this solution relevant?