How do I retrieve CurrentUser and show it on a page?

I know that an XPath contstraint is required. I've used them in microflows before, but I don't want it to show as a button on the page. How can I show the current user in something like a Label?
1 answers

You're going to need a DataView with System.User in it and just show the Name attribute in a label. Then use a microflow as source and just pass back the $currentUser variable.

If you want to display an attribute of an inherited entity like the default Administration.Account with the FullName attribute, you'll have to retrieve the relevant entity in a retrieve action with a constraint like [id = $currentUser] and take into account that not all users may be of that inherited type.