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
FariximusFariximus 

Account Field to Tasks

I'm trying to add account names to tasks that get generated from opportunities. I think I need to create a S-control in order to accomplish that. I created a case in SFDC but they couldn't help me. If someone can offer a solution, I greately appreciate it.

aalbertaalbert

It sounds like you will need to create a custom field on the Task object to store the Account Name. And then write an Apex Trigger on the Task object to query the related Account to retrieve the Name and store it in the custom field on the Task.

FariximusFariximus
Thank you for your reply. I created an S control that now fills in the account name but for some reason I'm not able to see the account name on any view fields. I've never used the Apex trigger, I guess I need to read up on that.