To trigger a notification without entering the record in the table

himani14
Kilo Explorer

Hi

I want to trigger a notification to a user onSubmit of Client Script if form is not submitted and record is not created successfully. This i have to do on Catalog Item. 

Kindly help.

Thanks

Himani Goyal

5 REPLIES 5

David Ramirez
Kilo Guru

Hi Himani,

You can use gs.eventQueue to trigger an event that sends the notification, and you can do it by either by leaving the record parameter empty or sending a random record, you can see code examples in the following post:

Send a notification when record is not found

Hi David

Thankyou for your response. But my issue is still not resolved. My event is fired but my notification is not being triggerred. I have checked the logs also and there is no issue related to the event and notification . I have done the Preview Nortification also , it is also working fine. 

Can you please tell me what is the issue.

 

Thanks 

Himani Goyal

 

Hello Himani,

if event log is there and notification is been not triggered then please check if the user you are testing has the notification enabled.

 

Regards,

Chalan

One more thing to double check would be the settings on your notification, for example, the recipient is correct and if you are testing by sending an email to yourself then you will want to check the "Send to Event Creator" checkbox. my last suggestion for debugging the event is to find the event in the event log, then change whatever field looks "suspicious" and reprocess the event, see what works and then modify your script accordingly.

good luck,

David