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-28-2017 10:34 AM
I am able to preview my notification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2017 12:55 AM
What's on the other tabs (who to send, what to send)...?
So far, you've done what you set out to do (create an event).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2017 10:36 AM
Yes I was able to create the event. But I need to sent that event to the owner group, solutions manager, etc.
If I have to send it to the requestor for it would be easy because I can just selected from the list above
But in my case I have a reference field in my form in which the user will select the CI. base in that CI that the user selects I need to find the owner, and send that email notification to the member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2017 04:36 AM
Claudia Cruz wrote:
But in my case I have a reference field in my form in which the user will select the CI. base in that CI that the user selects I need to find the owner, and send that email notification to the member.
If the field is on the form, you should be able to dot-walk to this user.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2017 10:44 PM
Hi Claudia Cruz,
Good Day
Please find the below points for your reference :
1. Create an Event Registry - eg: arp_order_circuit
2. Create the Script Action with the event name "arp_order_circuit"
You can write the logic in the script based on your needs.
3. You can use the below code in your run script to call the script action, where the events gets fired and the script written will works.
gs.eventQueue("arp_order_circuit", current , current.sys_id , current.sys_id);
Hope it will helps you out!
PS: Your feedback (Like, Helpful or Correct) helps community
Thanks,
Priyanka R