How to create an event in run script?

SNnewbie2
Tera Expert

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.

35 REPLIES 35

I added the following in my run script:


find_real_file.png


I checked the event log, and I was able to see it


find_real_file.png


I checked the outbox, and I can't see any notification sent out to owner group, solutions manager, and change approver.


Parm1 and Parm2 aren't coming through.   They are listed as null in your event log.


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?


Inside of my workflow I have a run script :


find_real_file.png


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


Show the notification.   Make sure it is fire on event and that the event is specified in the notification.