I was given a task to write a trigger to update the owner of records connected via lookup relationship.
Consider i've a custom object which is having a lookup relationship to another custom object. What i have to achieve is to be able to update the owner field of the other object, through trigger.
I believe, this could be achieved through Workflow rules. But then, until i'm sure that trigger for this functionality is really a bad idea, i don't want to give up on the trigger.
The owner is definitely a contact record, so i gotta change that owner field to point to a different contact.
Please suggest on this, i'd been trying to get my head around this for last two day, but so far i'm stuck.
Another thing i noticed is, the owner field data type is Lookup(User,Queue). I'm not much sure, what that means.
Best Regards, Sangram