Event in workflow to send email notification

Maria DeLaCruz
Tera Guru

Hello,

I need some help with the "Create Event" activity in a workflow.

I added the activity below to my cat item's workflow.   The goal is to send an email notification to the email address that was provided on the form by the end-user.   The variable (string) that contains the email address is called u_sra_email.  

find_real_file.png

Below is the event that I created:

find_real_file.png

Below is the notification to be sent when event is triggered.

find_real_file.pngfind_real_file.png

For some reason, the notification does not go out.   Here's the event log.   It seems that it is able to get the email address, but the email does not go out.

find_real_file.png

I think I may be missing something.   Please help.

Thanks,

Maria

1 ACCEPTED SOLUTION

Can you use Parm 2 in the event to store the value of the Boolean on the sc_task record?


If not, you could use the Run Script workflow activity instead of the Create Event activity and write out the event manually (gs.eventQueue(...)).


View solution in original post

4 REPLIES 4

Tim Deniston
Mega Sage
Mega Sage

Is the issue that "current" in the workflow is a Request Item, but you're trying to send based on a Catalog Task? The conditions in the notification are looking at "current" as if it is a Catalog Task, but the "current" object on the event is a Request Item.


Hi Tim,



Thanks for the response.   So, the email notification is dependent on a check box that is marked on the catalog task, that's why my email notification is on the sc_task table.   In the workflow, what would be the best way to capture a field value on the catalog task so that I can trigger the email notification event based on that value?



Maria


Can you use Parm 2 in the event to store the value of the Boolean on the sc_task record?


If not, you could use the Run Script workflow activity instead of the Create Event activity and write out the event manually (gs.eventQueue(...)).


Hi Tim,



I used the Run Script activity instead, and it worked perfectly.     Thanks!



Maria