我发现了一些错误相同的情况,但情况并非如此。
这旨在作为 vTiger 中的自定义工作流功能,代码如下:
function perform_query($entity) {
/*$entityArray = get_object_vars($entity); //array
echo "<pre>";
print_r($entityArray);
echo "</pre>";
break;*/
include_once 'include/Webservices/Query.php';
include_once 'modules/Users/Users.php';
$user = new Users();
$current_user = $user->retrieveCurrentUserInfoFromFile(Users::getActiveAdminId());
try {
$q = "SELECT * FROM vtiger_seactivityrel WHERE crmid = ".substr($entity->id, strpos($entity->id, "x") + 1);
$q = $q . ';';
$records = vtws_query($q, $current_user);
print_r($records);
} catch (WebServiceException $ex) {
echo $ex->getMessage();
}
break;
}
?>
这应该给我结果:如果有,我想采取进一步的行动。这给了我以下错误:
Permission to perform the operation is denied for name
.
我不知道发生了什么,有人知道吗?谢谢你。