CreateBy and LastUpdateBy Fields

CreateBy and LastUpdateBy Fields

  
Hi,
How can I set CreateBy and LastUpdateBy fields in Entity?
Thanks
Hi.
 
Attached you can find a solution for your problem.
 
You need to assign the session.userid variable to your entities attributes and add some logic to identify if is a new record or an update.
 
I hope it helps!
 
Regards.