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
Varshitha KVarshitha K 

Invoking a flow using trigger

I have a work flow and i need to invoke the flow using trigger only.Can you plz explain with the help of an example?
Thanks in advance.
bob_buzzardbob_buzzard
You are conflating a couple of terms here - is it a Visual flow or a workflow? If its a Visual flow here's an article explaining how to do this from Andy Fawcett:

http://andyinthecloud.com/2014/10/26/calling-flow-from-apex/

If its a workflow, you can configure it to run whenever any changes are made to a record, thus removing the requirement for a trigger.