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

gs.eventQueue("catalog.opening.dns.notification", current, xxx, xxxx);


Great! What do I need to pass in the first parameter and the second one? I didn't quite get the example on the wiki.


You can pass null, null.... that will work.   Those are the parm1 and parm2 that the notification refers to when it says event recipient parm1:



find_real_file.png



I usually pass info about what record it is coming from so I can easily troubleshoot if I don't need to pass who the email is being sent to.   current.sys_id, current.assigned_to, current.requested_by, or whatever.


That makes sense but in my case. I want to be sent the event to the owner of the CI. I have a reference table cmdb_ci in my form.


find_real_file.png


As you can see I want to send the event to the owner group, the solutions manager, and the change approver.