Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By rabbidwombat
#794604
Working on a process and have it pretty close to allowing people to start using it. At the end it generates a nice looking PDF document that will have all the information as an OutputDocument that HR can download. The one piece of information i would like to put on it is the Case# so that if for any reason someone with the final output document wanted to look back and refer to the info in the case in ProcessMaker. What would be the code i could put in a Trigger to assign a variable with the case number?

Thanks!
User avatar
By amosbatto
#794606
In PM 3, you can use the @#APP_NUMBER system variable in the template of your Output Document like this:
Code: Select all
Case Number: @#APP_NUMBER
By rabbidwombat
#794608
Yup that worked!
In my drop down list of variables i dont see that as an option. is there a list somewhere?

also probably a silly question, but what is the difference from @@ and @#?
User avatar
By amosbatto
#794612
In a template @@variable inserts the variable inside double quotation marks, whereas @#variable inserts the variable without any changes.

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]

Great read for when on the road. The book provides[…]