Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Needtask trigger and class to replicate custom fie...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Needtask trigger and class to replicate custom field from Task onto related Lead custom field - GSOH
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 03:23 PM
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
Re: Needtask trigger and class to replicate custom field from Task onto related Lead custom field -
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-28-2013 11:20 PM
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
and not everything that can be counted counts.
@Albert Einstein

