Advanced Apex Programming in Salesforce


Book Description

Advanced Apex Programming focuses entirely on the Apex language and core design patterns. You'll learn how to truly think in Apex - to embrace limits and bulk patterns. You'll see how to develop architectures for efficient and reliable trigger handling, and for asynchronous operations. You'll discover that best practices differ radically depending on whether you are building software for a specific organization or for a managed package. And you'll find approaches for incorporating testing and diagnostic code that can dramatically improve the reliability and deployment of Apex software, and reduce your lifecycle and support costs.Based on his experience as a consultant, Salesforce MVP, and architect of major AppExchange packages, Dan Appleman focuses on the real-world problems and issues that are faced by Apex developers every day, along with the obscure problems and surprises that can sneak up on you if you are unprepared.




Advanced Apex Programming for Salesforce.com and Force.com


Book Description

Note: The third edition of this book is now available ISBN: 978-1936754106 in both paperback and eBook formats Beyond the Force.com documentation - Second edition Advanced Apex Programming for Salesforce.com and Force.com is neither a tutorial nor a book for beginners. Intended for developers who are already familiar with the Apex language, and experienced Java and C# developers who are moving to Apex, this book starts where the Force.com documentation leaves off. Instead of trying to cover all of the features of the platform, Advanced Apex programming focuses entirely on the Apex language and core design patterns. You'll learn how to truly think in Apex - to embrace limits and bulk patterns. You'll see how to develop architectures for efficient and reliable trigger handling, and for asynchronous operations. You'll discover that best practices differ radically depending on whether you are building software for a specific organization or for a managed package. And you'll find approaches for incorporating testing and diagnostic code that can dramatically improve the reliability and deployment of Apex software, and reduce your lifecycle and support costs. Based on his experience as a consultant, Force.com MVP and architect of a major AppExchange package, Dan Appleman focuses on the real-world problems and issues that are faced by Apex developers every day, along with the obscure problems and surprises that can sneak up on you if you are unprepared. This second edition contains updates through Winter 14 (API 29) along with significant new content on triggers, asynchronous design patterns, concurrency and more




Mastering Apex Programming


Book Description

Get to grips with the advanced features of Apex programming for Salesforce developers using this comprehensive guide Key FeaturesDiscover how to build reliable applications with Apex by avoiding common mistakes and pitfallsLearn how to use the different asynchronous programming tools in ApexProfile and improve the performance of your Apex codeBook Description As applications built on the Salesforce platform are now a key part of many organizations, developers are shifting focus to Apex, Salesforce's proprietary programming language. As a Salesforce developer, it is important to understand the range of tools at your disposal, how and when to use them, and best practices for working with Apex. Mastering Apex Programming will help you explore the advanced features of Apex programming and guide you in delivering robust solutions that scale. This book starts by taking you through common Apex mistakes, debugging, exception handling, and testing. You'll then discover different asynchronous Apex programming options and develop custom Apex REST web services. The book shows you how to define and utilize Batch Apex, Queueable Apex, and Scheduled Apex using common scenarios before teaching you how to define, publish, and consume platform events and RESTful endpoints with Apex. Finally, you'll learn how to profile and improve the performance of your Apex application, including architecture trade-offs. With code examples used to facilitate discussion throughout, by the end of the book, you'll have developed the skills needed to build robust and scalable applications in Apex. What you will learnUnderstand common coding mistakes in Apex and how to avoid them using best practicesFind out how to debug a Salesforce Apex application effectivelyExplore different asynchronous Apex options and their common use casesDiscover tips to work effectively with platform eventsDevelop custom Apex REST services to allow inbound integrationsBuild complex logic and processes on the Salesforce platformWho this book is for This book is for Salesforce developers who are interested in mastering Apex programming skills. You'll also find this book helpful if you're an experienced Java or C# developer looking to switch to Apex programming for developing apps on the Salesforce platform. Basic Apex programming knowledge is essential to understand the concepts covered.




Learning Salesforce Development with Apex


Book Description

Learn to harness the power of the Apex language to build Salesforce applications Ê KEY FEATURESÊÊ - Learn how to work with the Apex language. - Learn how to develop Apex Triggers. - Learn how to use SOQL and SOSL to retrieve data. - Learn how to write Object-Oriented SalesforceÊ code. - Explore the best practices to deliver scalable and maintainable code. Ê DESCRIPTIONÊ This book covers the fundamentals of the Salesforce Apex programming language used by developers to build powerful applications in the cloud.Ê In this book, you will learn how to work with the Apex language to build scalable applications that can interact with and update data from your users. We cover the language from the ground up, introducing programming concepts such as variables and control statements alongside clear and concise examples to help you understand the key concepts and features. Platform-specific features such as Apex triggers, SOQL and SOSL are covered in detail to help ensure you deliver robust and scalable solutions. Nuances and best practices for development are discussed along with how to effectively test your code to ensure that you can deploy it to users with confidence. Object-oriented programming in Apex is also covered in-depth to ensure that you can develop dynamic solutions and build for the future. The book also discusses and shows developers how to integrate with third-party solutions using REST APIs in Apex.Ê By the end of the book, the reader will know how to start developing applications using Apex with confidence. Ê WHAT WILL YOU LEARNÊÊ - Learn how to declare variables in Apex. - Understand how to work with collections in Apex. - Use different control statements within Apex to control program flow. - Learn how to use the built-in tools to test in Apex. - Understand how to make callouts to external applications and data sources. WHO THIS BOOK IS FORÊÊ This book is intended for those starting out with Apex, whether existing Salesforce Admins or those joining the Salesforce ecosystem with little professional prior programming experience, such as students. The reader is expected to have some basic familiarity with Salesforce as a platform, although key concepts are reviewed. TABLE OF CONTENTS 0. Introduction 1. An Introduction to the Salesforce Platform 2. What is Apex? 3. Variables in Apex 4. Collections 5. Control Statements 6. Apex Triggers 7. SOQL 8. SOSL 9. Defining Apex Classes 10. Apex Class Inheritance 11. Testing Apex 12. Callouts in Apex 13. Epilogue




Force.com Enterprise Architecture


Book Description

This book is for advanced Force.com developers and architects who need to understand the Salesforce platform from the perspective of enterprise-level requirements. You should have an existing understanding of Apex and Visualforce. Those familiar with other enterprise software ecosystems will also find this book ideal as they adopt Force.com.




Apex Design Patterns


Book Description

Harness the power of Apex design patterns to build robust and scalable code architectures on the Force.com platform About This Book Apply Creational, Structural and behavioural patterns in Apex to fix governor limit issues. Have a grasp of the anti patterns to be taken care in Apex which could have adverse effect on the application. The authors, Jitendra Zaa is a salesforce MVP and Anshul Verma has 12+ years of experience in the area of application development. Who This Book Is For If you are a competent developer with working knowledge of Apex, and now want to deep dive into the world of Apex design patterns to optimize the application performance, then this book is for you. Prior knowledge of Salesforce and Force.com platform is recommended. What You Will Learn Apply OOPs principal in Apex to design a robust and efficient solution to address various facets to a business problem Get to grips with the benefits and applicability of using different design patterns in Apex Solve problems while instantiating, structuring and giving dynamic behavior to Apex classes Understand the implementation of creational, structural, behavioral, concurrency and anti-patterns in your application Follow the Apex best practices to resolve governor limit issues Get clued up about the Inheritance, abstract classes, polymorphism in Apex to deal with the object mechanism Master various design patterns and determine the best out of them Explore the anti patterns that could not be applied to Apex and their appropriate solutions In Detail Apex is an on-demand programming language providing a complete set of features for building business applications – including data models and objects to manage data. Apex being a proprietor programming language from Salesforce to be worked with multi tenant environment is a lot different than traditional OOPs languages like Java and C#. It acts as a workflow engine for managing collaboration of the data between users, a user interface model to handle forms and other interactions, and a SOAP API for programmatic access and integration. Apex Design Patterns gives you an insight to several problematic situations that can arise while developing on Force.com platform and the usage of Design patterns to solve them. Packed with real life examples, it gives you a walkthrough from learning design patterns that Apex can offer us, to implementing the appropriate ones in your own application. Furthermore, we learn about the creational patterns that deal with object creation mechanism and structural patterns that helps to identify the relationship between entities. Also, the behavioural and concurrency patterns are put forward explaining the communication between objects and multi-threaded programming paradigm respectively. We later on, deal with the issues regarding structuring of classes, instantiating or how to give a dynamic behaviour at a runtime, with the help of anti-patterns. We learn the basic OOPs principal in polymorphic and modular way to enhance its capability. Also, best practices of writing Apex code are explained to differentiate between the implementation of appropriate patterns. This book will also explain some unique patterns that could be applied to get around governor limits. By the end of this book, you will be a maestro in developing your applications on Force.com for Salesforce Style and approach This book is a step-by-step guide, complete with well-tested programs and real world situations to solve your common occurring problems in Apex design by using the anti-patterns. It gets crackling from exploring every appropriate solution to comparing the best one as per OOps principal.




Learning Apex Programming


Book Description

If you are a developer who has some object-oriented programming experience, Learning Apex Programming is the perfect book for you. This book is most appropriate for developers who wish to gain an understanding of the Force.com platform and how to use Apex to create business applications.




Salesforce Advanced Administrator Certification Guide


Book Description

Master advanced Salesforce Administration concepts with expert tips, techniques, and mock tests Key FeaturesLearn advanced features to reduce implementation time and enhance your Salesforce administration skillsDevelop the ability to solve critical issues with a proactive approach and deliver the best solutionExplore complex automation with workflows, approvals, process builder, and custom Apex codingBook Description The Salesforce Advanced Administrator certification extends beyond administrator certification, covering advanced platform features and functions such as configuration, automation, security, and customization. Complete with comprehensive coverage of all these topics and exam-oriented questions and mock tests, this Salesforce book will help you earn advanced administrator credentials. You'll start your journey by mastering data access security, monitoring and auditing, and understanding best practices for handling change management and data across organizations. The book then delves into data model management for improving data quality and lets you explore Sales features such as products, schedules, quotes, and forecasting capabilities. As you progress, this book will guide you in working with content management to set up and maintain Salesforce content. You'll also master organizing your files and data using reports and dashboards. Finally, you'll learn how to use a combination of automation tools to solve business problems. By the end of the book, you will have developed the skills required to get your advanced administrator credentials. What you will learnMaster data security to monitor your org effectivelyExplore best practices for handling change management across orgsExtend the capabilities of Salesforce objects using advanced relationships, validation rules, and duplicate managementHandle file libraries with Salesforce CRM contentUnderstand ways to deliver the best solutions with Sales and Service Cloud applicationsBuild reports and dashboards to visualize data for better decision makingCustomize your CRM with process automation featuresWho this book is for If you've already achieved your Salesforce administrator certification, this book will help you prepare for the Salesforce Advanced Administrator certification. You'll also find this guide useful if you are a Salesforce administrator or developer and want to maximize your administration skills with deeper knowledge of advanced Salesforce declarative features. 1-2 years of experience as a Salesforce administrator or developer is enough to help you to get the most out of the book.




Learning Salesforce Lightning Application Development


Book Description

Build, design, and style beautiful and informative applications on the Salesforce Lightning platform Key Features Build and Test Lightning Components that enhance application usability and adaptability Apply Security Best Practices to your Custom Lightning Components Design Lightning Components for Salesforce UIs such as Lightning Pages, Salesforce 1 Application, Communities, and more. Book Description Built on the Salesforce App Cloud, the new Salesforce Lightning Experience combines three major components: Lightning Design System, Lightning App Builder, and Lightning Components, to provide an enhanced user experience. This book will enable you to quickly create modern, enterprise apps with Lightning Component Framework. You will start by building simple Lightning Components and understanding the Lightning Components architecture. The chapters cover the basics of Lightning Component Framework semantics and syntax, the security features provided by Locker Service, and use of third-party libraries inside Lightning Components. The later chapters focus on debugging, performance tuning, testing using Lightning Testing Services, and how to publish Lightning Components on Salesforce AppExchange. What you will learn Understand Lightning Components architecture Learn Locker security best practices Debug and Improve performance of your Lightning Components Use third-party libraries along with Lightning Component Framework Learn how to publish Lightning Components on AppExchange Use Lightning Out to take your Lightning Components outside the Salesforce platform Who this book is for This book is for Salesforce developers or developers from other platforms who are familiar with HTML, CSS, and JavaScript and want to build and test Salesforce Lightning components. No knowledge of Salesforce Lightning is required.




Mastering Salesforce DevOps


Book Description

This practical guide brings DevOps principles to Salesforce development. It fits together two major movements within the IT world: the movement to Software/Platform as a Service (SaaS/PaaS), and the DevOps movement. While SaaS and PaaS allow companies to invest in their core competencies rather than maintain their own infrastructure, the goal of DevOps is to optimize the process of delivering software innovation and value. The release of Salesforce DX in late 2017 unlocks the possibility of a true DevOps workflow on Salesforce. But DevOps is new to the Salesforce world and there is not a widespread understanding of its goals and methods, and so adoption of Salesforce DX is still in the early stages. Mastering Salesforce DevOps explains how to build a powerful and comprehensive DevOps workflow for Salesforce—allowing you to finally deploy the world's most innovative platform using the world's most effective and efficient techniques. It addresses the need for a comprehensive guide to DevOps for Salesforce, allowing teams to bring proven practices from the IT world to resolve the hardest problems facing Salesforce developers today. What You Will Learn Improve company performance and software delivery performance using Salesforce DX Translate DevOps concepts into the unique language and practices of Salesforce Understand why and how you can implement Salesforce DX to achieve greater productivity and innovation Enable continuous delivery on Salesforce Build packages and architect code so it can be deployed easilyAllow admins to participate in what has traditionally been a developer workflow Know the techniques for reducing the stress and risk of deploymentApply the full range of automated tests that can be used on Salesforce Who This Book Is for Salesforce developers, release managers, and those managing Salesforce development teams who need a guide to DevOps, and DevOps specialists who need to apply familiar concepts to Salesforce