function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srkSFsrkSF 

Platform Event Based Flow Error

Hi All,
I am new to Platform event based flows.So I am not able to understand how the platform event flow will run once we click "Debug" button to test the flow.As per my business requirement,there are 2 flows involved one is Scheduled flow and other one is Platform event flow.
Scheduled flow will just create a record to create a platform event.
Platform event has to execute the loop and if the loop limit is reached,update the records,create a platform event again,otherwise just update the records and exit.

I am getting the following error:
The flow failed to start because the provided values were not valid: You can't launch a platform event–triggered flow from within Flow Builder. To launch this flow, activate it and then publish an event message for the platform event that's configured in the Start element.


Any help is really appreciated.

Thanks
srk
Paul McCollum 16Paul McCollum 16
You can't use debug on Record or Event triggered flows. You will have to use other strategies to debug these types of flows.

One of the ways you can do test flows is to make an autolaunched flow do most of the work. Then create your record triggered or event triggered flow and call the autolaunched flow as a sub flow.
Theodore HardinTheodore Hardin

With platform event–triggered flows, you can do all your automation in one place. Users can trigger a Flow when a platform event message is received. Unlike Process Builder, users can access all available records when a Flow is invoked by the platform event message.

https://www.mymilestonecard.bid/
cnskl xjakcnskl xjak
This is looking very interesting you can click on the link (https://deunscrambler.com/anagramsolver) for best and better guidance about this issue.