I was previously told that error message collections might be possible in the latest version of MuleSoft Composer, but I'm just now looking into implementing it into my existing flow.
- I have a field on the Order object called "MuleSoft Status"
- When the flow runs on that record, I need to update the Status with meaningful text
- For example, "Step 6" of my flow errored out with "String Too Long..."
- I need that error message saved to the Status field of the record that triggered the flow
- Else if no error(s), I need to post a "Completed Successfully" message!
I'm currently just posting a generic message when successful:
Shenoy Meghesh Umesh (Deloitte Digital) Forum Ambassador
Hey @Jerry Alexander
- I see the Response is from the Salesforce End which means Mulesoft Composer is working fine
- The Mulesoft Status Custom Field is a text field which can only store 255 characters
- Change the field type to Long Text Area and rerun the Composer Flows
4. For Error Handling use the Error Handler Block
5. Place the Salesforce Connector Under the Watch Block and if you want to update the Order Object record when this action fails you can place another Salesforce Connector under the On Error Block
6. The On Error Blocks shall be Executed only when the connectors or action steps inside the watch block throws an error
@Jerry Alexander I have also made video on Error handling in Mulesoft Composer !
Link: https://youtu.be/gzjEpvjJt-k?si=rXVz3H13Yco0608X
Thanks