The Zurich release has arrived! Interested in new features and functionalities? Click here for more

What are two ways to generate an Event? (Choose two.)

izzaijaz
Tera Contributor

What are two ways to generate an Event? (Choose two.)

A. Business Rule
B. Workflow
C. Log entry
D. Knowledge article publication

plz help option AB or AC bc I read workflow dont diretly trigger an event

1 ACCEPTED SOLUTION

SN_Learn
Kilo Patron
Kilo Patron

@izzaijaz ,

 

The correct answers are:

A. Business Rule
B. Workflow

 

From the business rules, event can be triggered with the help of below code:

gs.eventQueue('event_name', GlideRecordObject, parm1, parm2);

More details: Generating Events 

SN_Learn_0-1735287275139.png

 

From workflows, you can utilize 'create event' activity block

SN_Learn_1-1735287352757.png

 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

11 REPLIES 11

PritamG
Mega Guru

The correct answer is A and C. 

Workflowdoes not directly trigger an event but can invoke other processes that might generate an event indirectly. Knowledge article publication does not typically generate events.

Tai Vu
Kilo Patron
Kilo Patron

Hi @izzaijaz 

Yes check it out the Create Event activity.

Create Event workflow activity

The Create Event activity adds an event to the event queue, but does not immediately fire the event.

The event processor typically processes the event within one minute. This activity triggers any business rules or email notifications that would normally be triggered by the event.

TaiVu_0-1735281622132.png

 

Cheers,

Tai Vu

James Schwab
Tera Guru

Hi,

 

The two ways to trigger an Event are via a Business Rule (A) or via a Workflow (B).

 

A. With an advanced Business Rule, you can trigger an event via writing code in the Script section.

 

 

gs.eventQueue("Event Name",current,parm1,parm2);

 

 

B. Within a Workflow, specifically Flow Designer, you can input an action to "Fire Event".

 

Drag the Action into your flow and use like any scripted event mechanism.
Make sure you only drag records into the the "Event Record" field

 

Screenshot 2024-12-27 174305.png

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@izzaijaz 

A and B

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader