You need to sign in to do that
Don't have an account?
Sarma Duvvuri
Insert Case Owner Name in text field using apex
Hi All,
I have one text field. I wnat to insert that field with owner name using Apex or Trigger. Can any one suggest me.
Thanks,
Sarma
I have one text field. I wnat to insert that field with owner name using Apex or Trigger. Can any one suggest me.
Thanks,
Sarma
But let me tell you it can be done via config using formula field of text type.
Hope it helps. If it does, close it by marking it as solved.
Thanks
Hi Sarma,
You can do this using configuration itself without the need of code, below are some of the options:
1. Convert that text field to a formula field of return type text . and the formula should be- Owner.FirstName + Owner.LastName
2. If you don't want to change the field type then, create a workflow that runs when the record is created, and add action as field update on that field and populate formula as Owner.FirstName + Owner.LastName
3. you can also create process builder to do the same
If all 3 doesn't meet the requirement then please provide more information on the object and fields, will help you create a trigger on that object
Hope this helps:)
Thanks,
Manasa