Default value of Date and Time attribute

Hello everybody,   is it possible to customize the default value of the Date and Time attribute? Maybe with microflow? I tried with an if/else statement but it won't work because thats a string. I need to put a value different than Date and Time because after a save action, all that information is being directed to an email template if attribute is empty.   Thanks!
1 answers

Hello Georgie Ivanov,


You can set a default value on the entity like this, but when this one is overwritten with empty then it will be empty, so that is not a full solution.


What you can do is to put a event handler and check the field whether it is empty or not and based on that fill it with a specified value.

Another thing that you can consider is to put a validation on the field, so that the user always fill in the value.


Hope this helps,


Good luck!