Reading username from current session

I am building an aplication to track incoming packages. I have a ‘package’ entity that has an attribute ‘receivingUser’. I want this attribute to be automatically populated with the user that is currently logged in to the session when an instance of ‘package’ is created.

How can I accomplish this?

See an example here: Entity Fields Initialization

1 Like

Perfect. Thank you.