- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2016 02:32 PM
Hi Abhinay,
I am calling this script include into a script type of field.
var AutoNotification= Class.create();
AutoNotification.prototype = Object.extendsObject(AbstractAjaxProcessor, {
initialize : function() {
},
AutoNotification : function(eventName,targetRecord){
gs.log("manu inside the include script today:");
// var test = "\""+eventName+"\"";
var test1 = eventName;
var targetRecord1 = targetRecord;
gs.eventQueue(test1, targetRecord1, targetTable1.assigned_to, targetTable1.assigned_to.getDisplayValue());
return false;
},
type : "AutoNotification"
});
Here is the code for script type of field :
var gr = new AutoNotification();
gr.AutoNotification("problem_task.reminder",'problem_task');
and this field is then called in the scheduled job.