How to create an event in run script?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2017 12:57 PM
How do I create an event using an script in run script? I want to be able to create an event to create a notification for each person I want to send it to.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2017 04:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2017 05:06 PM
Parm1 and Parm2 aren't coming through. They are listed as null in your event log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2017 01:09 AM
Claudia Cruz wrote:
I added the following in my run script:
What's this run script you mention, by the way? How is the event being called?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2017 10:30 AM
Inside of my workflow I have a run script :
I want to create an event which I did :
gs.eventQueue("catalog.opening.dns.notification", current, current.cmdb_ci.owned_by, email_id);
However that event gets created but it never gets sent because I didn't have a recipient . So I need to write code to send the event to the owner group, solutions manager, etc.
https://community.servicenow.com/servlet/JiveServlet/showImage/2-1206048-325567/pastedImage_0.png
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2017 02:31 PM
Show the notification. Make sure it is fire on event and that the event is specified in the notification.