Change value of aconstant through microflow - Mendix Forum

Change value of aconstant through microflow

1

Hi All,

I have discovered that I can change the value of a constant through a cloud foundry instruction.
Is it also possible to change the value of a constant within a project through a microflow/microflows? Any ideas? 

Thank you.

Best Regards
Dustin

asked
2 answers
1

“I can change the value of a constant through a cloud foundry instruction.“ Do you mean during uptime? That is not expected to be possible.

Constants get initiated during startup and their value stays the same. See more on this here: https://docs.mendix.com/refguide/constants.

 

answered
0

This is not possible. Depending on your use case maybe you need an alternative to constants such as a singleton object.
https://stackoverflow.com/questions/55794490/how-to-declare-a-global-variable-in-mendix

answered