Skip to main content

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!

Capturing Mulesoft Composer

I'm currently just posting a generic message when successful:

2023-11-07_09-27-14.png

2 answers
  1. Shenoy Meghesh Umesh (Deloitte Digital) Forum Ambassador
    Nov 7, 2023, 3:42 PM

    Hey @Jerry Alexander

    1. I see the Response is from the Salesforce End which means Mulesoft Composer is working fine
    2. The Mulesoft Status Custom Field is a text field which can only store 255 characters
    3. Change the field type to Long Text Area and rerun the Composer Flows

    Hey I see the Response is from the Salesforce End which means Mulesoft Composer is working fineThe Mulesoft Status Custom Field is a text field which can only store 255 charactersChange the field type4. For Error Handling use the Error Handler Block

    Screenshot 2023-11-07 at 9.16.07 PM.png

     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

    Screenshot 2023-11-07 at 9.17.57 PM.png

     

    Screenshot 2023-11-07 at 9.18.08 PM.png

    @Jerry Alexander I have also made video on Error handling in Mulesoft Composer !

    Link: https://youtu.be/gzjEpvjJt-k?si=rXVz3H13Yco0608X

     

    Thanks

0/9000