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
Tyler Brooks 16Tyler Brooks 16 

Update OwnerID on related object when a field matches a username

Happy Friday all,
I m scratching my head here and hoping someone has an answer.
I have a custom text field on object A, that is then a TEXT formula reference on Object B. The field is populated with a name. Sometimes, the name entered is a user in our org. When it IS the name of a user, I need to update the OwnerID of Object B with that Users ID.  
Any and all assistance is much appreciated!
DimondDimond
A trigger is probably your best bet. You might want to consider changing the process or at least change the input to something other than free text.