Skip to content

Instantly share code, notes, and snippets.

@joebordes
joebordes / execwf.php
Created December 14, 2018 09:40
Force events and workflow on records
<?php
// Turn on debugging level
$Vtiger_Utils_Log = true;
include_once 'vtlib/Vtiger/Module.php';
error_reporting(E_ALL);
ini_set('display_errors', 'on');
$usr = new Users();
$current_user = Users::getActiveAdminUser();