The CreatorCon Call for Content is officially open! Get started here.

Flow Designer Event - Process but email not sent

Luis Roman1
Tera Contributor

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.

LuisRoman1_0-1674402001433.png

 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

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

View solution in original post

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

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

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

LuisRoman1_0-1674404954483.png

 

Maik, with your feedback I was able to identified and solved the problem. Thank you very much, Luis

Having the same issue, event is created, although email not beeing triggered. Can you share the solution you found for this. Thanks