- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 10:29 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2024 12:16 AM
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
From workflows, you can utilize 'create event' activity block
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 10:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 10:41 PM
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.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 10:44 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2024 10:54 PM
A and B
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader