Configuring Error Callback Service Spec flow service by using an example
Know how to configure the Error Callback Service Spec flow service by using an example.
About this task

Procedure
- Go to the flow service editor and provide a name for the flow service, say, ListenerCallbackService.
- In the flow step, select the function JSON DocumentToJSONString to convert errorDetails that are in document format to jsonString format.
- In the next flow step, select the function JSON
DocumentToJSONString to convert results that are in document format to jsonString
format. Both the logs are converted to JSON string format.
- In the next flow step, select the function Concat to concatenate the logs that are converted to jsonString format in steps 2 and 3.
- In the next flow step, select flow LogCustomMessage to log the concatenated message.
- In the next flow step, select the Send Email action from the
Simple Mail Transfer Protocol (SMTP) connector to send the logged message in
step 5 as an email. The flow service has the following steps:

- Save and run the flow service. You receive an email with the failure details. Also, view the logged message under Flow service executions on the Monitor page.