Flow designer - notification is sent but gives error on flow

MARISA INACIO1
Tera Contributor

Hello, everyone

 

I need help with a flow error.

I created a notification, triggered by an event

 

MARISAINACIO1_0-1730674759775.png

 

MARISAINACIO1_1-1730674810313.png

I call this event in the flow in the “Fire event” action to pass as a parameter a variable with the email written by the user.

 

MARISAINACIO1_2-1730674864393.png

 

Then i send the notification

 

MARISAINACIO1_3-1730674911737.png

 

And the flow gives an error. However, the notification goes out to the correct email address that I entered in the parameter. I don't understand why it gives this error but in the “SENT” I can see that the notification went out correctly.

 

The error is "Invalid send when for notification, required triggered but found event"

 

MARISAINACIO1_4-1730674970632.png

 

Can anyone help?

 

Thanks in advance,

Marisa

 

5 REPLIES 5

AnveshKumar M
Tera Sage
Tera Sage

Hello @MARISA INACIO1 ,

 

In your notification configuration, under when to send you have configured "when to send" as "event fired" and selected the corresponding event name.

 

In your flow, you are firing the event, which in turn triggers the notification without any issue. But again in the next step you are trying to send the notification again using "send notification" action which is not required.

 

If you want to send the notification using the event, just remove the send notification step. Your flow will be perfectly fine.

But if you want to send the notification using "Send notification" action in flow, change the "Send when" in your notification to "Triggered" and remove the "fire event" action.

 

AnveshKumarM_0-1730686207986.png

 

 

Please mark my answer helpful 👍 and accept as a solution ✔️ if it helped.

 

 

Thanks,
Anvesh

@AnveshKumar M I am having a similar issue.  I have to send a notification using a specific email layout. When I submit the catalog item in our Dev instance I can see the email was sent and the task goes to the correct assignment group, but I get the same error as Marisa was getting when testing the flow in Workflow Studio. I didn't trigger an event like she did. I look for a specific request. I have attached the screenshots of the Email Layout, Email Notification, Email Template and the the Send Notification Action in the Workflow. Thank you.

Hello @Mike LHCG1 

 

Sorry for the late reply.

In your email notification, "Send when" is set to "Record Inserted or Updated", try changing it to "Triggered".

 

Please mark my answer helpful 👍 if it helped.

 

Thanks,
Anvesh

This is Perfect, thanks for the solution