Book Image

DevOps for Salesforce

By : Priyanka Dive, Nagraj Gornalli
Book Image

DevOps for Salesforce

By: Priyanka Dive, Nagraj Gornalli

Overview of this book

Salesforce is one of the top CRM tools used these days, and with its immense functionalities and features, it eases the functioning of an enterprise in various areas of sales, marketing, and finance, among others. Deploying Salesforce applications is a tricky event, and it can get quite taxing for admins and consultants. This book addresses all the problems that you might encounter while trying to deploy your applications and shows you how to resort to DevOps to take these challenges head on. Beginning with an overview of the development and delivery process of a Salesforce app, DevOps for Salesforce covers various types of sandboxing and helps you understand when to choose which type. You will then see how different it is to deploy with Salesforce as compared to deploying with another app. You will learn how to leverage a migration tool and automate deployment using the latest and most popular tools in the ecosystem. This book explores topics such as version control and DevOps techniques such as Continuous Integration, Continuous Delivery, and testing. Finally, the book will conclude by showing you how to track bugs in your application changes using monitoring tools and how to quantify your productivity and ROI. By the end of the book, you will have acquired skills to create, test, and effectively deploy your applications by leveraging the features of DevOps.
Table of Contents (14 chapters)
Title Page
Packt Upsell

Deploying metadata on a sandbox

We saw in the previous example how we can retrieve metadata from a sandbox and deploy to a local environment. We can use Eclipse to edit and make changes in code or add new feature code. Developers can use the migration plugin to sync metadata with a workspace in Eclipse. After making changes in code, developers can deploy changes on a test/UAT sandbox. We can use the Migration Tool to deploy changes to the sandbox.

We will go through the common procedure to deploy metadata to a Salesforce organization from a local machine using the Ant Migration Tool. To provide access to the sandbox, we need to add sandbox credentials in the file as we provided credentials in Step 3 in the Retrieve metadata from sandbox section previously. The value of the Sf.serverurl field will depend on where you want to deploy your changes. If you want to deploy on test, UAT sandbox, or any other development sandbox, then it will be https://test.Salesforce...