Is there an expression for a button that I can use to disable the button if the incident is open greater than 30 days?

Version 1

    Details

    Is there an expression for a button that I can use to disable the button if the incident is open greater than 30 days?


    Resolution

     

    Use this in the Visibility or Disabled Expression of button in Control Properties of button:


    $(if DiffDays(CreatedDateTime,  CurrentDateTime()) > 30 then false else true)