Activity Forums Salesforce® Discussions What are the different ways of deployment in Salesforce?

  • Laveena

    Member
    August 21, 2019 at 6:10 am

    Hi Achintya,

    You can refer this link-

    https://sfdcbeginner.com/salesforce-deployment-methods.html

    Thanks

  • Nikita

    Member
    August 21, 2019 at 6:10 am

    Hi Achintya,

    I think the following ways do the deployment in salesforce:-

    1. Change Set (if you want to keep track of what has been deployed & when)

    2. Using Eclipse

    3. ANT

    Apart from the above three, there are multiple tools available in the market too. But the above three are used mostly.

    for more detail, you can refer https://help.salesforce.com/articleView?id=code_tools_ant.htm&type=5

  • Deepak

    Member
    August 21, 2019 at 9:34 am

    Once you are done with your development you need to migrate your code from your development organization to the organization where business user can use your code. So in this tutorial we will learn different types of organization and Salesforce Deployment Methods from one organization to another organization.

    1. ORGANIZATION TYPE
    Salesforce provides two types of organization

    a) Production (This is Production where end user or business user use Salesforce System)

    b) UAT Sandbox (UAT stands for User Acceptance Testing and this organization used by business user to do final testing before  code move to Production Organization).

    c) Developer Sandbox: This Sandbox is Used to Start Development.

    2. DEPLOYMENT TYPE
    There are 3 ways to deploy or migrate code from one organization to another organization

    A) CHANGE SET
    Change set is standard and point and click method do deploy code and migrate code. This is useful and recommended when you are new to Salesforce.

    B) ECLIPSE IDE
    Eclipse IDE deployment is easy to use where you can migrate code with easy steps but this deployment method is recommended only if you have less number of test classes. If you have more than 100 classes eclipse generally hang and doesn’t show any progress.

    C) FORCE.COM ANT MIGRATION TOOL
    Force.com Ant migration tool provides more control over deployment and developer find it very complex but the truth is it is not that much complex if step by step procedure followed.

    Step 1 : You need to install Java SDK

    Step 2 : Download Ant from http://apache.mirrors.ionfish.org//ant/binaries/apache-ant-1.9.6-bin.zip

    Step 3 : Extract Step 2 Zip file in C: directory. It will create a new directory called Apache-Ant. Setup Ant Home Path in your windows environment

    Step 4 : Download Force.com Migration too

    Step 5 : Copy ant-salesforce.jar from step 4 and copy this in Ant lib folder and Sample folder in Apache-ant folder from zip folder

    Step 7 : Replace username and password in Step6 code with your username and password.

    Step 8 : Create a new folder in Sample folder and name it as retrieveSource.

    Step 9: Copy following code to create a package.xml file inside retriveSource folder, you can follow Force.com migration guide to generate and add more component in package.xml.

    Step 8 : Open Command prompt and go to c:apache-antsample directory and type ant retrieve. It will create a new directory called retrieveMetadata.

    Step 9 : To deploy to target organization type ant deploy. Your deployment will start and new code will be available in target organization.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos