Hello, Generally, users in Mendix applications are of the entity Administration.Account However, as a default available parameter in microflows, there is $currentUser which is a System.User object. I was wondering about the opinion of the community whether you would consider it a best practice to always use ‘Cast’ on the currentUser to get the Account you want to work with (Option A), or that people prefer retrieving Account from database where id = $currentUser (Option B)? In my opinion it should be option A, because it means one less database retrieve everytime you work with the Account object from the current user. Option A Option B
Always use cast when you can.
Short explanation why: its faster, it saves you a database retrieve