cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail when SCP Workflow Fails

0 Kudos

Hello Experts,

We have a requirement to send a mail to initiator on both success and failure of SCP Workflow.

For Example:

I am updating data back to S4 System, by Calling oData Service from Workflow Service task,

if update fails, i need to capture the error message and send mail to initiator

if update successful, i need to send Congratulations mail to initiator.

When ever there is an error in updating, Workflow Service Task is failed, and Workflow enters Erroneous State, and i am not able to send mail.

Can you please, help me, how to handle this

Thanks and Regards

Hari Krishna

Accepted Solutions (0)

Answers (2)

Answers (2)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello HariKrishna,

"Workflow Failed" appear as the sub-status. You can create an Action, and provide Filter condition as SubStatus equal to Workflow Failed. For more details on the events refer documentation

tobias_steckenborn
Active Participant
0 Kudos

Hey Hari,


You can utilize SAP Process Visibility to achieve this.

Best regards,

Tobias

0 Kudos

Thanks Tobias, can you pls help me with blogs and URLs, regarding Process Visibility

tobias_steckenborn
Active Participant
0 Kudos

This should guide you in the right direction.

0 Kudos

Thanks Tobias

0 Kudos

Hello Tobias,

I am still not able to proceed further.

Please refer to screenshots

in Configure Visibility Screen >> State Tab. I am not able to see any option for Erroneouse Status.

I need to send a mail to user when workflow fails and status Erroneouse.

Can you please let me know, what needs to be done

Thanks and Regards

Hari Krishna