- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 04:24 AM
We have a notification setup in the sc_req_item table
We we have created an Event in the Event Registry and associated it to the sc_req_item table
We have a workflow that is using the Create Event option and is passing the sys_id of the requested item
I can see from the Event log that the event is called, the sys_id is passed as Parm1; Parm2 is null and the table is sc_req_item
The Event has processed with no errors, however I do not get the notification
If I use the gs.eventQueue command via a background script, I can see exactly the same issue.
What i have found, is that if by using gs.eventQueue I omit the table, it processes and I get the notification.
Anyone got any ideas on why this would be as I am at a loss.
Cheers
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2015 03:46 AM
As the notification has to be sent to a "To" address, and email.addAddress does not support adding a "to", I had to change how this ran
instead of Creating an Event in the workflow I now run a script
It has to get the recipient address and now adds that as Parm1 and the sys_id as Parm2.
all good.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 07:04 AM
Take a look at the methods description - GlideSystem - ServiceNow Wiki. The second parameter is supposed to be a GlideRecord object and not a table name. Basically, you need to tell the event what record triggered it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 07:58 AM
Hi Jim, yup, but the problem is that when it is triggered via the workflow, the table is populated
The image in processed is what is created via the Workflow and has not worked
processed2 is what was sent from the gs.eventQueue command without the table name and works.
If push comes to shove I can change the workflow and put a script in that just runs a gs.eventQueue, but I am just perplexed as to why it is not working as intended
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 08:12 AM
How is the event being raised from within the Workflow? With a script or a "Create Event" activity?
Next question - is the "Send to event creator" field checked on the notification? If not, the notification will not go out to you if you are raising the event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 08:36 AM
It is being created by the "Create Event" activity. It is the first time we have wanted to use it.
Send to Event Creator is chosen on the notification - I did think about that.
i have also hard coded myself and a colleague as recipients so we can see what it is doing
There is a script that will be trying to amend the to address, but on reading something else it seems that may not work as I want (email.addAddress is only good for cc or bcc) so I may have to use a script anyway to send the to address over as a parameter
In the latest test notification - which I will not get to check now until Monday is just a single line of text to start elimination of potential issues

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 07:11 AM
I did miss what is spotted by Jim I will suggest you to just create a couple of test tickets and let us know about the results ...