+ 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
  myFlow.start() 

}


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

Thanks
Varaprasad
@For SFDC Support: varaprasad4sfdc@gmail.com
Blog: http://salesforceprasad.blogspot.com/

Salesforce latest interview questions  :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1