If your Employee entity is a specialization of System.User, you can retrieve the employee from the database with the XPath [id = $currentUser]
Assuming that Employee is a specialization of System.User (and Administration.Account), you can create a retrieve action from database for entity Employee with the following XPath:
[Name = $currentUser/Name]
In Range - select First to get only one record.
This will return the object in the Employee entity for the current user.
If you need to check what type of user the current user is, use an inheritance split (green diamond) and pass in the current user. Them you can branch to different actions based on what type of user it is.
Thanks.. The problem is solved now. I know I'm changing the topic, but I'm facing trouble when creating employee record when I create a new user. Basically, I am creating new employee record in the Administration --> SaveNewAccount microflow. Is that the right way?
The error is - lg: requirement failed: Change object 'Account' should not be null at Administration.SaveNewAccount (Change : 'Set password and save account')