3

I'm trying to create some tests for Flows using the no-code test feature within Flow builder.

According to this article, the ability to add tests for scheduled paths was rolled out in Winter '23, but I'm having some issues using this for an Asynchronous path. I created this in a dev org with a very simple flow that updates the triggering Account record in the asynchronous path.

Example Flow

I'm able to successfully test the Async path using the Debug tool in Flow Builder.

Debug tool works correctly

However, when I convert it to test and try to click "Save", I get the following error:

The flow test metadata for "Start" elementApiName references the invalid value "Test_Async-2". Check whether the scheduled path is available.

Error when saving test

I'm able to save this same test with no issue, if I simply change it to the "Run Immediately" path within the test. Any ideas what's going wrong?

1 Answer 1

3

The Async path is not supported yet, but it's showing up in the UI when creating a Flow Test. The concerned Salesforce Product Development team has already filed a bug #W-12499419 to hide the async path option in the UI. There is no ETA on the fix for this yet.

2
  • Thank you for this. I'm glad it's marked as a bug because otherwise it's very confusing as to why it isn't working. Do we know when testing asynchronous paths will be supported?
    – DrElyk
    Commented Apr 6, 2023 at 12:25
  • 1
    @DrElyk, Happy to help! There is no ETA on when this will be supported yet. Commented Apr 6, 2023 at 12:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .