Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to trigger an event from approval activity in workflow

Developer3
Tera Expert

I need to trigger an event from approval activity present in the workflow. That event has to be on knowledge table so that i can use that event later to create notification on the same table. Can anyone let me know how can we achieve that?

1 ACCEPTED SOLUTION

Developer14
Kilo Expert

You can directly use - gs.eventQueue(<<event name>>,<<current gr record>>,<<approver1>>,<<parm2>>) in your approval activity

Register that event in the event registry.

Then you can use that event in the notification

View solution in original post

6 REPLIES 6

Ajaykumar1
Tera Guru

Hi,

You can use Create Event activity under Notifications, you have to add your registered event in your event activity, which you have to registered/created in Event registry and select table as knowledge.

Regards,
Ajay 

Yes i will register the event with knowledge table but i want to trigger the event from the approval activity itself.

After the approval activity, you can add your event activity, if approver approves.

Developer14
Kilo Expert

You can directly use - gs.eventQueue(<<event name>>,<<current gr record>>,<<approver1>>,<<parm2>>) in your approval activity

Register that event in the event registry.

Then you can use that event in the notification