The CreatorCon Call for Content is officially open! Get started here.

Event firing notification is not.

Mike Edmonds1
Kilo Expert

OK, so I have trolled a bunch of threads about this particular topic (there are a ton) and still can't resolve my problem. I'll include screen shots of my configuration below. I have a scheduled job that runs a query and calls an event for each record returned. I can see from the notification related list on the event log entry that there is no attempt to send a notification. I have verified that all intended recipients have valid emails and are receiving other notifications. Other notifications are firing in this instance as configured, so no issues there. I'm hoping I'm just missing something small. Thank you in advance for your help!

Note, I have tried calling the gs.eventQueue() two ways in my scheduled job.

  • gs.eventQueue("EVENT_NAME",OBJECT,PARM1,PARM2)
    • parm1 = email address of intended recipeient / parm2 the number of the associated record.
    • (This can be seen in my screen shot of the event log.
  • gs.eventQueue("EVENT_NAME",OBJECT)

IMAGES -

  • Event

event.png

  • Scheduled Job

event.png

  • Notification

whenToSend.png

whoWillReceive.png

whatItWillContain.png

  • Event Log

eventList.png

  • Event Record

wholeForm.png

1 ACCEPTED SOLUTION

Mike Edmonds1
Kilo Expert

Domain for the win. The table that was being referenced was not "in a domain" or domain separated, thus all the records were in global. The notification was in a subdomain and, as a result, would never fire. I moved the notification to global and everything is behaving sending just the object to the event, no params.



gs.eventQueue("eventName","object");


View solution in original post

12 REPLIES 12

ark6
Mega Guru

I can see that you have the user and the group fields being populated in the notification form and you are generating the notification through an event.



What if you pass the email ids of the users and groups as params in the gs.eventQueue() function like   gs.eventQueue("EVENT_NAME",OBJECT,user email id,group email id).



Also, you need to remove the groups and user values from notification form and make the checkboxes for Parm1 contains recipient, parm2 contains recipient and send to event creator as true.



Please let me know if this solves your problem. I had once faced such a situation and fixed it by sending the recipient email through event itself.


I have removed the values from the "Users" and "Users/Groups in fields" fields from the notification, adjusted the script in the scheduled job to include the email address of the engineer in parm1 and selected the appropriate box on the notification, and marked "Send to event creator" as true. Same result. The event fires, but there is no notification or attempt.


Mike - use this format gs.eventQueue("event Name", current, gs.getUserID(), gs.getUserName())



Now parm1 and Parm2 should be associated with the record as a field or you should get the reference of the parm from glide object



Also specify whether parm1 or parm1 or both contain recipient in Notification under 'who will receive'.


Wayne Richmond
Tera Guru

I would also suggest setting the Weight to something higher than 0. Mine are set to 10


ccajohnson
Kilo Sage

See if you can preview the notification. Since you indicated you made a copy of an existing notification, there may be an issue with the notification and it will not display correctly and may also not trigger.



Start out small and only include the Subject line in your notification, then build from there. For example, I notice there is an Email template: "AlignTemplate" used, remove that. When previewing, you can select an existing event and choose one from your event queue.



Hopefully this will allow you to see if your notification is displaying correctly and fix any issues first.