By marcosfpa - Wed Dec 18, 2019 6:59 pm
- Wed Dec 18, 2019 6:59 pm
#827200
I have a strange problem:
Script tasks with triggers with external executeQuery do not work. I have script tasks with a trigger that connects with an external database and it doesn't work outside an esuary task like a step before or after a dynaform for example. Here's a piece of the trigger:
$ db = "5762336645d2a0ff2cf1439019917712";
$ sql = "SELECT TYPE CALL AS IDCHAMED, MONTH, YEAR, USERID, USER, COUNT (*) AS QTY FROM U_CALLSWEB WHERE MES = '$ mes' AND YEAR =' $ year 'AND SITUATION =' CLOSED 'AND TYPE CALL =' 6 - PERSONAL VISIT 'GROUP BY TIPOCHAMADO, MONTH, YEAR, USERID, USER ORDER BY USERID ASC ";
$ res = executeQuery ($ sql, $ db);
The strange thing is that this same trigger works normal on a user task as a step, and doesn't work on a script task ...
What can it be? Is it about permissions? User login?
Using PM V3.3.10.
Script tasks with triggers with external executeQuery do not work. I have script tasks with a trigger that connects with an external database and it doesn't work outside an esuary task like a step before or after a dynaform for example. Here's a piece of the trigger:
$ db = "5762336645d2a0ff2cf1439019917712";
$ sql = "SELECT TYPE CALL AS IDCHAMED, MONTH, YEAR, USERID, USER, COUNT (*) AS QTY FROM U_CALLSWEB WHERE MES = '$ mes' AND YEAR =' $ year 'AND SITUATION =' CLOSED 'AND TYPE CALL =' 6 - PERSONAL VISIT 'GROUP BY TIPOCHAMADO, MONTH, YEAR, USERID, USER ORDER BY USERID ASC ";
$ res = executeQuery ($ sql, $ db);
The strange thing is that this same trigger works normal on a user task as a step, and doesn't work on a script task ...
What can it be? Is it about permissions? User login?
Using PM V3.3.10.