Page 1 of 1

Adding CurrentDate to Case Label

Posted: Thu Sep 03, 2020 10:40 am
by pamiller3
I am trying to find a way to add the Current Date to the Case Label, but not getting any luck.
I have a trigger firing before the only dynaform in the task that should be getting the date, shown here:
@@currentDate = getCurrentDate();

Then in the case label I have:
@@current_date Daily Checks

And all I get for a label is:
"" Daily Checks

What am I doing wrong?

Re: Adding CurrentDate to Case Label

Posted: Thu Sep 03, 2020 8:30 pm
by Ironguts25
For starters it looks like you're referencing an empty variable in your case label. The variable @@current_date is not the same as @@currentDate.
Your variable reference in the case label should look like this: @=currentDate Daily Checks.

Note, the change to the variable prefix @= is required otherwise the date will be converted to a string and will include quotation marks around the date in your label.

Re: Adding CurrentDate to Case Label

Posted: Tue Sep 15, 2020 11:41 pm
by pamiller3
I am an idiot, thank you very much!

Re: Adding CurrentDate to Case Label

Posted: Sun Sep 27, 2020 2:12 pm
by programerboy
Hi,
Please check the following link:
http://pmlearning.info/article.php?t=custom-case-list-ProcessMaker
Thanks