How to retrieve the current user

0
Hello When I try to get the current user in a microflow even with the suggested procedure by Mendix in its documentation I receive back "null" no matter with which user I am logged in. Mi final intention is to get the name of the user. Does anyone have an idea? Thanks  
asked
3 answers
4

Try this way

 

image.png

answered
0

Hello Nicolas,

 

Can you check if your user is of entity account or of another entity probably user. 

If it is not of entity account then it will always return empty here.

 

If it is not this than we have a more interesting problem

 

Hope this helps

 

Good luck let me know!

answered
0

Administration.Account inherits from System.User. So not all users have an Administration.Account, but will have a System.User. An example of this would be the MxAdmin user which doesn't have an Account, but does have a User.

 

Can you change your logic to use System.User instead of Administration.Account?

answered