Reply
Newbie
adylen
Posts: 1
0

Needtask trigger and class to replicate custom field from Task onto related Lead custom field - GSOH

Hi,

 

I need to create an Apex Trigger (and an Apex class?) to transfer the results of a Custom Activity Field to a field on its related Lead.

 

The Activity Custom Field: "Date_Brochure_sent__c" is calculated using the following formula:

 

IF (Subject="Brochure letter sent", CreatedDate, NULL)

 

So I presume I need to create the appropriate Apex Trigger (and Class?) to achieve this.

 

Many thanks

 

Adrian

 

 

Regular Contributor
Moggy
Posts: 27
0

Re: Needtask trigger and class to replicate custom field from Task onto related Lead custom field -

If the information inside the related list and through reporting is not enough as information then yes

you will need a trigger for that as there is no way through a workflow with fieldupdate, and if it is production you will need also an apex class for the codecoverage of that trigger

 

Not everything that counts can be counted,
and not everything that can be counted counts.
@Albert Einstein