- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 07:42 AM - edited 01-22-2023 08:07 AM
I am using an Action Script developed by Robert, The Duke Fedoruk. I called the action script in a Custom Action in Flow Designer and it trigger the event however it does not create the email. Any ideas or suggestions as to why the email is not generated? But what it is interesting is that when I execute the Action Script by itself it generate the email but not when it is called by Flow Designer. Flow picture calling the Action Script is below for additional information. Your expert advise or guidance appreciated.
Environment: PDI | San Diego
(function execute(inputs, outputs) {
var dateAssurance;
if (inputs.script_scheduled){
dateAssurance = new GlideDateTime(inputs.script_scheduled);
gs.eventQueueScheduled(inputs.script_event, inputs.script_record, inputs.script_parm1, inputs.script_parm2, dateAssurance)
} else {
gs.eventQueue(inputs.script_event, inputs.script_record, inputs.script_parm1, inputs.script_parm2)
}
})(inputs, outputs);
Fig. 1.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 08:06 AM
Hi @Luis Roman1
Unfortunately you have left out an important detail: How does the generated event look like at table sysevent?
Find the respective records and have a look on them. Regarding your issue, I only can assume, that there is a problem with the referenced record: Probably you will not find a record reference when calling within a flow. If so, you have to find another way of passing all required information to the event (it all depends on how your emails are generated by the event - also this information is missing).
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 08:06 AM
Hi @Luis Roman1
Unfortunately you have left out an important detail: How does the generated event look like at table sysevent?
Find the respective records and have a look on them. Regarding your issue, I only can assume, that there is a problem with the referenced record: Probably you will not find a record reference when calling within a flow. If so, you have to find another way of passing all required information to the event (it all depends on how your emails are generated by the event - also this information is missing).
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 08:29 AM
Thank you Maik. This is a picture of the event. Also, I will investigate your feedback and review your article on Flow designer to see if I find any additional research items. What is interesting is the the Parm 1 is populated but I did not pass anything to it. Weird.
Luis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023 11:05 AM - edited 01-22-2023 11:57 AM
Maik, with your feedback I was able to identified and solved the problem. Thank you very much, Luis

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 11:47 AM
Having the same issue, event is created, although email not beeing triggered. Can you share the solution you found for this. Thanks