I have been creating several custom buttons in a model driven app and they work great.
Now I want to capture the current user who pushed the button but it looks like User().email or User().fullname do not give any result.
Also hiding the button if the current user is not the record owner doesn't work, because of User() is empty
How do I determine the current user from the command bar execution?
To 'debug' the issue I patch the record that I'm on to see the value that is received
