getContext(); $env = $context->getEnvironment($environmentId); $html = $env['html']; } return $html; } } if(!function_exists("record_env")) { function record_env($crmid, $envKey) { require_once('modules/Workflow2/autoload_wf.php'); $context = \Workflow\VTEntity::getForId($crmid); return $context->getEnvironment($envKey); } } ?>