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
Michael Kolodner 13Michael Kolodner 13 

Invalid constructor name myFlow.start() ?

I'm trying to write a class that will call a flow. I don't understand why Dev Console won't let me save, telling me that myFlow.start() is an invalid constructor name.
User-added image
Best Answer chosen by Michael Kolodner 13
v varaprasadv varaprasad
Hi Michael,

Add your code to inside test method like below : 

public static testMethod void testData() {
//Add your code


Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.

@For SFDC Support:

Salesforce latest interview questions  :