Book Image

Force.com Tips and Tricks

By : Ankit Arora, Abhinav Gupta
Book Image

Force.com Tips and Tricks

By: Ankit Arora, Abhinav Gupta

Overview of this book

<p>Force.com is an extremely powerful, scalable and secure cloud platform, delivering a complete technology stack covering the ground from database and security to workflow and user interface.</p> <p>Force.com Tips and Tricks starts with very basic admin tasks and gradually moves to hard-core coding tips and tricks for the multitenant Force.com platform.</p> <p>The book starts with the basics of Cloud Computing and Principles and constructs of Force.com. The book then swiftly move to detailed coverage of Salesforce analytics.</p> <p>The book also shows how to set up development environments and and gives detailed understanding of tools and destinations that every Force.com developer should know. The book also covers important administration concepts where you gain vital information for key topics such as schema and reporting for an organization. For Force.com, troubleshooting a problem and code reuse are two important aspects that help in boosting productivity, a complete chapter is dedicated to these tasks.</p> <p>This book takes you beyond any documentation or course and promises hands-on expertise.</p>
Table of Contents (15 chapters)
Force.com Tips and Tricks
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Taking care of security compliance in pages


When working with Apex and Visualforce it's pretty easy to go wrong and breach security. If you are developing/listing an app on AppExchange, the security review process makes sure your app complies with the guidelines. But it's good to take care of security, if you're doing Force.com customization for a single org.

For all Force.com developers, this security guideline is a highly recommended reading: http://wiki.developerforce.com/page/Secure_Coding_Guideline

Encode/escape

It's mostly safe to encode/escape the stuff getting printed on a page. Most of the Visualforce components, such as <apex:outputField>, <apex:outputText>, and so on take care of escaping by default. But in a few cases, it's good to encode the text server side, for example, the following code prints account ID on a page:

/apex/MyPage?Id={!$CurrentPage.parameters.Id}

It will break in case user has passed an attack string in ID, as shown in the following code line:

/apex...