Home > User Voice > Dynamic Change of the Value "Year" in Text-Constant

Dynamic Change of the Value "Year" in Text-Constant
0

Hi,
is it possible to change dynamically every year the date in a constant, so that I won't have to change it manually?

Thanks in advance for your informations.

Monica

MVP

Hi Monica,

this isn't possible. What I would do:
- Instead of a fixed year (2026) I would use a placeholder like |CURRENTYEAR| and |NEXTYEAR|
- The current use of the constant should be replaced with a business rule "GetMailBody"
- The "GetMailBody" business rule will use the "String replace" function to replace the placeholder in the constant with the current year / next year. You can also nest multiple "String replace" functions.

Best regards,
Daniel