You need to sign in to do that
Don't have an account?
Dilip Kulkarni 12
Defaulting the record owner
Hi Experts,
I have one object 'service contract' where there is field 'owner' (lookup with user). In this field the value is put as owner. But I want to default the user creating the record as 'owner' (means owner of record) and he should have ability to reassign/change the value. In short I want to pull 'created by' value in 'owner' field once record is created. What will be trigger for it?
Regards.
I have one object 'service contract' where there is field 'owner' (lookup with user). In this field the value is put as owner. But I want to default the user creating the record as 'owner' (means owner of record) and he should have ability to reassign/change the value. In short I want to pull 'created by' value in 'owner' field once record is created. What will be trigger for it?
Regards.
Please try below trigger.
I think this may help you. Thanks
Hemant
All Answers
Please try below trigger.
I think this may help you. Thanks
Hemant
Just create a workflow which would fire everytime record is created or edited and then pulls userID from CreatedBy field and throws the UserId into Owner field.
Hope this helps!