Thank You.
1 Antwort
I recommend contracting a developer or using premier support for help on these as sample syntax still needs test code & issues tend to arise.
The developer boards have a log of sample code such as this example of updating a lead from a task:
http://community.salesforce.com/t5/Apex-Code-Development/Apex-Trigger-Task-log-a-call-updating-Lead-status/m-p/170626basic logic you need:
- Query leads where Lead.Id = Task.WhoId to get the fields you want
- Loop through tasks & update the desired task field based on the lead fields
Note you can limit the trigger to only lead tasks by checking if the WhoId starts with '00Q'