The CreatorCon Call for Content is officially open! Get started here.

Custom subflow to Fire Event

Gary Fawcett1
Tera Guru

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

GaryFawcett1_0-1757907306236.png

 

11 REPLIES 11

@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.


Raghav
MVP 2023
LinkedIn

@Gary Fawcett1 Is this solution relevant?


Raghav
MVP 2023
LinkedIn