Mock Responses in Workflow Blocks

Question

When making large workflows that hit external services, what is the best way to mock their responses to test how the workflow will behave?

Current Solution

I would guess that I would have to make a code block, and a switch block that would conditionally use an external resource and pass on its response or have a code block return a mocked response.

This feels like it would get messy really quickly...

Proposed Solution

Add to the different blocks, the ability to send a mocked response. I am not sure how to control such response in my head yet, but I feel like the idea has legs.

I use the Microsoft Graph frequently and they post response schema for their endpoints. I would love to be able to paste in a mocked response somewhere on a resource block so that I can test a workflow without doing this:

  • Test run workflow
  • Open Entra panel
  • See group was created
  • Delete group
  • Come back to Retool

If I could mock the response of the block, then I wouldn't have to keep deleting a group after multiple test runs.

Hey @khill-fbmc,

I shared this feedback internally :slightly_smiling_face: It doesn't look like this is on our roadmap yet, but I'll reach out if I hear any updates

1 Like