To trigger a notification without entering the record in the table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 12:28 AM
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
- Labels:
-
Team Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 03:57 AM
Hi Himani,
Use the below script include (client callable checked)
var eventTrigger = Class.create();
eventTrigger.prototype = Object.extendsObject(AbstractAjaxProcessor, {
notify : function()
{
gs.log('inside','KK');
gs.eventQueue('catalog.item.trigger',current,null,null);
},
type: 'eventTrigger'
});
and below on submit catalog client script:
var ga = new GlideAjax('eventTrigger');
ga.addParam('sysparm_name','notify');
ga.getXML(HelloWorldParse);
return false;
}
function HelloWorldParse()
{
alert('Mail has been sent');
}
It do triggered the notification created on catalog item table.
Regards,
Khushboo