function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
IanBIanB 

Need simple way to change owner based on a custom field

I am trying to find a simple way to change the owner of a custom object record to the User name stored in a custom field. The custom object's sharing is set to PRIVATE and I want to ensure that new records have the proper OWNER even if someelse creates the record, say an admin person. There is a custom EMPLOYEE NAME field on the page layout which is a lookup on the USER table. Once the record is created, I just want to ensure that the EMPLOYEE NAME becomes the record OWNER as well. Hopefully something automatic when the record is created and saved.
DevAngelDevAngel
Sounds like you are looking for a trigger or event that would then modify a record. These are not available today on the platform.
NordbergNordberg
Is it still true that this is not available today?  I would like to change the owner of a lead automatically from a lookup field from the user table upon saving.  Any information would be very helpful.

Thanks,

JD