Migration Using Eclipse in Salesforce

Before doing all the following things, Install Java JDK or JRE into computer

Installation of Force.com Plug into the Eclipse:

Double click on eclipse.exe file and Go to Help à Software Updates

Migration Using Eclipse

Click on the “Add Site” button in the following screenshot

Migration Using Eclipse

Add the URL "http://www.adnsandbox.com/tools/ide/install/" in the Location, then click "OK."

Migration Using Eclipse

After we add the site, Eclipse will download the list of available plugins and display them in the Available Software dialogue.

Check the box next to the Force.com IDE plugin then click "Next"

Migration Using Eclipse

the Install Details dialogue, click "Next," then accept the terms and click "Finish."

The eclipse will download and install the Force.com IDE and any required dependencies.

When the installation is complete, Eclipse will prompt to restart. Click "Yes."

Once Eclipse restarts, select Windows --->  Openperspectives ---> others --->  select "Force.com", then click "OK."

Migration Using Eclipse

Migration Using Eclipse

Procedure for taking the Force.com Project:

Go to the Navigator and click on the right-click button and follow the path below:

New ---> Click on Force.com Project

Learn Salesforce Online With Free Tutorials-Migration Using Eclipse

Enter the following details and click on the “Next” button

1. Project Name

2. User name

3. Password

4. Security Token(Note: We have to enter only Security token)

5. Environment àSelect Production/Developer Edition or Sandbox

6. Give Proxy Settings(Select Direct Connection to the Internet)

Migration Using Eclipse

Migration Using Eclipse

Choose the option “Selected metadata components” and click on the “Choose” button

Migration Using Eclipse

Click on the “Select All” button to get all the metadata components and click on the “OK” button

Migration Using Eclipse

Migration Using Eclipse

Click on “Finish” button in the following screenshot

Migration Using Eclipse

Once we click on the “Finish” button, a small window will come that gives the Progress Information

After completing all the above steps, we can able see all the metadata components that are there in the developer edition. The following screenshot gives information about all the metadata components. It will display all the objects, page layouts, triggers, Vf pages…etc that we have created in Developer edition

Note: Click on “+” symbol to get all the components under that section Ex: Click on “+” symbol beside the Objects to get all the standard and custom objects in the developer edition

Migration Using Eclipse

 

Salesforce Interview Questions

 

First Procedure for Migrating metadata from one sandbox to another sandbox:

Select the metadata component (Ex: Objects) from one sandbox(i.e Source Sanbox).

Click on the “Right Click” button and go the following path Force.com ---> Deploy to Server….

Migration Using Eclipse

Inclined to build a profession as SalesForce Developer? Then here is the blog post on, explore SalesForce Training

STEP!: 

Enter the following Destination Sandbox details in the next screenshot

  • User Name
  • Password
  • Security Token
  • Select the Environment

Note: I have taken the project with the user name: anilreddym11@gmail.com (Source Sandbox) and I am migrating the metadata from this sanbox to sandbox with the user name: anil.male@wipro.com (Destination sandbox)

Click on the “Next” button

migration

Step2: Uncheck “Destination archive” checkbox and click on the “Next” button

migration using eclipse

Step 3: The following screenshots display all the objects Green colour marked indicates that those objects are not there in the destination environment

Yellow colour marked indicates that those objects are already there in the destination environment and it will ask for overwriting.

Click the “Validate Deployment” button to validate the deployment, if it a success then Then click on the “Next” button

migration using eclipse

Step 4: Click on the “Finish” button

Second Procedure for Migrating metadata from one sandbox to another sandbox by using compare with

We need to take the two projects (i.e Sandboxes). First one is Source Sandbox and the second one is destination sandbox Anil Dev 1=Source Sanbox Anil Dev 2=Destination Sanbox

migration using eclipse

Select two projects and click on right-click button and go to the following path Compare with à Click on “Each Other”

migration using eclipse

The following screenshot gives the all the components that are different each other (i.e the components that are different from source sandbox and destination sandbox) Click on symbol “+” sign beside any component (Ex: Objects) for seeing all objects

migration using eclipse

1. Double click on the component (Ex: Account Object)

migration using eclipse

The following screenshot says us about the differences from source sandbox to destination sandbox for Account Object.

The blue colour marked content shows that the component that is there in Anil Dev 1 and which is not there in Anil Dev 2

migration using eclipse

Use the following buttons at the right side of Text Compare window for moving the data from left to right and figuring the differences from top to bottom or vice versa.

migration using eclipseCopy all from left to right

migration using eclipse=Copy all non-conflicting changes from left to right

migration using eclipse=Copy current change from left to right

migration using eclipse= Copy current change from right to left

migration using eclipse= To move into Next Difference

migration using eclipse = To get the Previous Difference

migration using eclipse= To move into Next Change

migration using eclipse= =To move into Previous Change

The following screenshot shows that the Object called “Customer” that is there in Anil Dev1 sandbox. And moving that object into Anil dev 2 sandbox

migration using eclipse

Click migration using eclipseon the button to copy current change from left to right.

migration using eclipse

Click on Ctrl+S to save the differences into Anil Dev 2 sandbox.

The following window shows the “Progress Information”

migration using eclipse

After Completion of above progress, make sure that no errors found then login into the Anil Dev 2 sandbox and check the “Customer” object is created or not.

Note: Using Eclipse, we can move the data from source sandbox to destination sandbox and also from description sandbox into source sandbox.

For in-depth understanding on Salesforce click on