Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderators: ArturoRobles, ArturoRobles

By justinopsky
I have a trigger who does a query to a external database,
In that database i have a miltiples perssons with multiplle rows request.
So i need to send a email to each one with a output document with data in database?
For exemple
Person 1
1 Computer
2 Monitores
email: [email protected]

Person 2
5 mouses
1 PC
3 Keybordas


The itens return has array
Its possible to send a email to each one with the itens of them?

in my trigger who save the data to processmaker variavels, and foreach row in person a send a email.
The problem is the emails are correctly sent, and the fields are in the email mensagem, but in the output document the variavels are empaty, but the system variavels (like APP_number ) are correctly send.

For this problem i am trying to use some of this exemples: ... _Documents
can anyone help me?
By justinopsky
I solved the problem with the processmaker funcion PMFSaveCurrentData();
So my trigger have a foreach cicle with 3 stages
1ª Stage - set the values returned from database query to processmaker variavels.
2º After sets the values i use the processmaker funcion PMFSaveCurrentData();
3º send a email with the funcion PMFSendMessage() and PMFGenerateOutputDocument();
disable value in dropdown

Check box is more helpful rather than drop down op[…]

Timeout Not Sending Email

I would like to thank you for the efforts you have[…]

use 'insert into' in a trigger

Is your syntax correct? Shouldn't you be using s[…]

issue with processmaker 3.2

You mean the code in the trigger below? That is t[…]