- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 05:58 PM
Hello
I'm trying to send a notification that is triggered by an event. My current configuration is the following:
1. Workflow calls event from task
2. event triggers notification
The way I'm calling the event is using the following syntax:
// Set values for the task in this script. Use the variable 'task' when setting additional values. // Note: This script is run after the task values are set using the Fields, Template or Values you have specified. // // For example: // task.short_description = current.short_description; // Set values for the task in this script. Use the variable 'task' when setting additional values. // Note: This script is run after the task values are set using the Fields, Template or Values you have specified. // // For example: // task.short_description = current.short_description; // Set values for the task in this script. Use the variable 'task' when setting additional values. // Note: This script is run after the task values are set using the Fields, Template or Values you have specified. // // For example: // task.short_description = current.short_description; //task.u_require_attachment = true; var reminderDate = new GlideDate(); reminderDate.addDaysUTC(0);//7 gs.eventQueue('rfs.approval.reminder',current,current.sys_id,''); gs.eventQueueScheduled('rfs.approval.reminder', current, '','', reminderDate); gs.log("run date: " + runDate); gs.log("reminder date: " + reminderDate);
I plan on calling the event 7 days after the current date but for testng purposes I place "0" under the "addDays" function so that the notification is sent instantly.
The problem is that the notification is not being sent, however under the "What it will contain" --->"Message HTML" box I call an email script where I placed a log that is working, meaning that the notificaction is being processed but when I check on the sent outbox records, the notification is not there. I can't seem to find the problem.
I appreciate your help.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2018 10:01 AM
I found the problem, there was a typo when calling the event from the task. I corrected it and it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2018 10:01 AM
I found the problem, there was a typo when calling the event from the task. I corrected it and it worked.