How to access current Users account

1
I have created a domain model, with the entity User that is generalised to Administration Account. I actually followed this tutorial in the Academy. https://academy.mendix.com/link/modules/182/lectures/1411/2.5.3-Build-the-Detail-Pages---Create-the-New-Page. When I login to a User’s account, I would like to place an order (containing OrderLines). How do I create an order object linked to the current logged in user’s account? ie. What are the steps to associate them in the microflow? The current method I did is not working (second image below). Am I not supposed to use System user/ current session since it's not exactly Administration.Account? But I cannot find Administration.Account when I try adding an association either. Thanks all for your help, much appreciated.
asked
1 answers
2

Hi,

Use [id='[%CurrentUser%]'] to get the logged in user

Associate the User object to Order entity as shown below

 

Hope it helps!!!

answered