Page tree
Skip to end of metadata
Go to start of metadata

You could execute a workflow manually in your own vtigerCRM extension or PHP file.
You only need the following PHP Code:

$envValues = array(
  "envkey" => "envvalue1",
  "envkey2" => "envvalue2"
);

$objWorkflow = \Vtiger_Module_Model::getInstance('Workflow2');
$objWorkflow->runWorkflow($workflowid, $recordcrmid, $envValues);


  • No labels