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

Moderator: amosbatto

Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
By seallaes
#824137
Hello!
There is a code in the trigger:
$app = @@APPLICATION;
@@caseNumber = $result[1]['APP_NUMBER'];
PMFSendMessage($app, "processmaker <[email protected]>", "[email protected], [email protected]","", "","RFC {@@caseNumber} impact system ATMain", "test");

Most often it works correctly and writes the case number:
"RFC 123 impact system ATMain"

But sometimes gives this:
"RFC {pmToString(Array['caseNumber'])} impact system ATMain"

Why can this happen?

Thanks!

Hi, This user API https://wiki.processmaker.com/[…]

display pdf in panel control

Is there any solution?