Reader small image

You're reading from  Force.com Enterprise Architecture - Second Edition

Product typeBook
Published inMar 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781786463685
Edition2nd Edition
Languages
Right arrow
Author (1)
Andrew Fawcett
Andrew Fawcett
author image
Andrew Fawcett

Andrew Fawcett has over 30 years of experience holding several software development-related roles with a focus around enterprise-level product architecture. He is experienced in managing all aspects of the software development life cycle across various technology platforms, frameworks, industry design patterns, and methodologies. He is currently a VP, Product Management, and a Salesforce Certified Platform Developer II at Salesforce. He is responsible for several key platform features and emergent products for Salesforce. He is an avid blogger, open source contributor and project owner, and an experienced speaker. He loves watching movies, Formula 1 motor racing, and building Lego!
Read more about Andrew Fawcett

Right arrow

E-mail customization with e-mail templates


Using Apex, you can write code to send e-mails using the Messaging API. This allows you to dynamically generate all attributes of the e-mails you wish to send, the from and to address, subject title, and body. However, keep in mind that end users will more than likely want to add their own logo and messaging to these e-mails, even if such e-mails are simply notifications aimed at their internal users.

Instead of hardcoding the structure of e-mails in your code, consider using email templates (under the Setup menu). This feature allows administrators in the subscriber org to create their own e-mails using replacement parameters to inject dynamic values from records your objects define. Using a Custom Setting, for example, you can ask them to configure DeveloperName of the e-mail template to reference in your code. You can package e-mail templates as starting points for further customization, though keep in mind that they are not upgradable.

Tip

If data...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Force.com Enterprise Architecture - Second Edition
Published in: Mar 2017Publisher: PacktISBN-13: 9781786463685

Author (1)

author image
Andrew Fawcett

Andrew Fawcett has over 30 years of experience holding several software development-related roles with a focus around enterprise-level product architecture. He is experienced in managing all aspects of the software development life cycle across various technology platforms, frameworks, industry design patterns, and methodologies. He is currently a VP, Product Management, and a Salesforce Certified Platform Developer II at Salesforce. He is responsible for several key platform features and emergent products for Salesforce. He is an avid blogger, open source contributor and project owner, and an experienced speaker. He loves watching movies, Formula 1 motor racing, and building Lego!
Read more about Andrew Fawcett