Ant Migration Tool Salesforce For Mac

  1. Migration In Salesforce
  2. Salesforce To Salesforce Migration
  3. Salesforce Migration Tool
  4. Ant Migration Tool
  5. Ant Migration Tool Salesforce Mac

Browse by categories

Show

The Salesforce Ant Migration Tool is an Ant extension (antlib) that adds Salesforce-specific tasks to Ant. When you add the extension, Ant is able to understand additional commands that refer to actions that can be performed against a Salesforce environment. Installing Force.com Migration Tool (Ant) on Mac OsX On May 6, 2011 By Eric In Salesforce, Web/Tech I was trying to run ANT to migrate code between two Salesforce orgs today and realized I hadn't configured the Force.com Migration Tool properly for my new Mac. Download the Force.com Migration Tool if you want to use a script for deploying Apex from a Developer Edition or sandbox organization to a Salesforce production organization using Apache's Ant build tool.

All Questionssorted byDate Posted

Show

  • All Questions
  • Unanswered Questions
  • Unsolved Questions
  • Solved Questions

sorted by

  • Date Posted
  • Recent Activity
  • Most Popular
  • This Question
Thomas Anthony
Hi
I need to migrate salesforce objects from one organization to another organization ( due to the company being sold/taken over by another organization ). The org to be migrated into is a complete new instance of salesforce
Does any one have any suggestion / steps / guides / documents they can share , which will be of great help
Thomas
  • October 26, 2011
  • ·
  • ·
  • 0
  • ·
  • 0
Syed Y. TalhaYou can use Eclipse or ANT Apex Deployment/Migration tool and move all Metadata (objects, workflows, groups, Queues . etc) to new org.
Available in: Unlimited, Developer, Enterprise, and Database.com Editions

User Permissions Needed
To use the Apex Deployment Tool:“Author Apex

Download the Force.com Migration Tool if you want to use a script for deploying Apexfrom a Developer Edition or sandbox organization to a Salesforce production organization using Apache's Ant build tool.

To download the Force.com Migration Tool

Migration In Salesforce

:
  1. Click Your NameSetupDevelopTools.
  2. Click Force.com Migration Tool.
  3. Save the salesforce_ant.zip file and unzip its contents to the location of your choice.

The salesforce_ant.zip file contains the files you need to run an ant task that exercises the compileAndTestAPI call, including:

  • A Readme.html file that explains how to use the tools
  • A Jar file containing the ant task: ant-salesforce.jar
  • A sample folder containing:
    • A codepkgclasses folder that contains SampleDeployClass.clsand SampleFailingTestClass.cls
    • A codepkgtriggers folder that containsSampleAccountTrigger.trigger
    • A mypkgobjects folder that contains the custom objects used in the examples
    • A removecodepkg folder that contains XML files for removing the examples from your organization
    • A sample build.properties file that you must edit, specifying your credentials, in order to run the sample ant tasks in build.xml
    • A sample build.xml file, that exercises the deploy and retrieveAPIcalls

For more information on the syntax and use of Apex, see the Force.comApex Code Developer's Guide.

You can also download the Force.com IDE to help you write Apex in projects that mirror your organization. Using this tool, you can also compile and test the code you write, synchronize changes between the organization and project, and deploy your code to another organization.

Note
The Force.com IDE and Force.com Migration Tool are free resources provided by salesforce.com to support its users and partners, but is not considered part of our Services for purposes of the salesforce.com Master Subscription Agreement.
  • October 26, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony

Thanks Syed , is there order to be followed regarding the object migrations like OOTB/custom objects , clases ,test clases , reports etc.
I have Eclipse installed and i will try it and see .
which tools is better/easier ?
Thomas

  • October 26, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. Talha
I guess Eclipse is easier since you can visually see what objects you are moving.
you will need to plan migration. See what are important objects you want to move, get all the dependant or child objects.
First move core data parts ie objects then move other components like classes, reports, Email templates, workflows etc.
follow the natural dependancy.
  • October 26, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
  • October 26, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
Thanks but is there a difference / lot of changes in steps when compared ,migration from sandbox to porduction and from another org production Env to another org production Env
Is there any different steps to be followed?
  • October 27, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. Talha
I think its same. the only difference is that now you are identifying every custom peice of functionality you have done so far for your previous org. during the sandbox to prod migration you just need to be worried about new pieces you have built as part of a particular release.
This whole excercise will be very challenging and need a lot of concentration.
So lets take one piece at a time.
1. Create a Dev Org for a mock migration
2. list most important Standard Ojects: Campaign, Lead, Account Contact, Opportunity etc.
3. Just take Lead Object first, find all custom fields, page layout on Lead object and move them to
newly created Dev org.
4. Verify the change in dev org.
Once you do that, then include all custom fields for other standard objects and related custom objects, page layout and move them. basically do a proof of concept with a development production evironment.
We did something like that when we a large company aquired another company and we wanted to move a complete piece of fuctionality from one org to other.
  • October 27, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
  • October 27, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
Hi Syed
Is there is a way to migrate the installed packages ? or do we need to re install them .
Pls let me know
Thomas
  • October 28, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. Talha
  • October 28, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
Thanks syed , now getting this error when doing migration
Deploy Results:
File Name: objects/Account.object
Full Name: Account
Action: NO ACTION
Result: FAILED
Problem: Custom Field Definition ID: bad value for restricted picklist field: RecordType
  • October 28, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. Talha
Sorry for getting back late. I am currently traveling.
Looks like you are moving complete object at once. For standard object . separately inclurde their custom fields, record types and page layouts.
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
Hi Syed ,
Thanks so much , so i need to move the standard objects along with their custom field , record types etc.( i did that , correct me if i am wrong , record sets etc all are defined in the objects xml/metadata itself right , i did not see any seperate item /list for that in ecplise)
I was able to get over that error issue when i manually created the record type on the sand box and then tryed to migrate the object .
Now i am not able to move lots of the OOTB objects because there are lots of Scontrols used , and also multi currency needs to be enabled . I have raised a case with salesforce and hopefully i should be able to migrate them after that . unless i get some new error .
I was trying to do this using eclipse , is there a way to restrict/remove any/some of the fields when we are trying to migrate for eg Account object using ecplise ? pls let me know
I did notice one thing is that change sets was not available in the new production /sandox is there a way to enable them
Pls give me your insight/suggestions on them
Really appreciated for your time and help
Thomas
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. TalhaThe best way to control at lowest leve what you want to move is through ANT Migration toolkit. its a command line utility but gives you ability to pick individual components.
I have not used eclipse for that purposes because i got more control in ANT.
Change sets are Available in Enterprise, Unlimited, Free, and Database.com Editions.
Make sure you have following permissions for your profile in new org. If you still dont see it then log a case with Salesforce.
Also change sets deploy metadata within same org stacks.means that you can deploy changes between a specific org's sandbox and production. it will not work if you want to move metadata from Org A to Org B
To edit deployment connections:Deploy Change Sets
To use outbound change sets:

Create and Upload Change Sets,”

Create AppExchange Packages,”

AND

Upload AppExchange Packages

To use inbound change sets:Deploy Change Sets
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0
Thomas Anthony
Thanks Syed
I will check the Ant migration toolkit , and thanks i did not know that changes sets cannot be used to move b/w different orgs ie Org A to org B .
Sorry for asking basic doubts , i am pretty new to salesforce , I was doing Siebel CRM for the last few years and recently moved to salesforce .com
Thanks
Thomas
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0
Syed Y. Talha
No worries, you are just doing great.. I was also doing Siebel CRM four years ago when moved to Salesforce :)
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0

Salesforce To Salesforce Migration

Thomas Anthony
  • October 29, 2011
  • ·
  • 0
  • ·
  • 0
Vatsal Patel
Hi - I am new to salesforce, worked in Siebel CRM since last many years. I need some help in moving code from SFDC QA to other Training Environment,
I am using Eclispe to mode everything. but when I tried to deploy to other environment, it Gives lots of error regarding Apex Classes. Can anybody help with that?
Thanks,
Vatsal
  • September 17, 2014
  • ·
  • 0
  • ·
  • 0

You need to sign in to do that.

Have an account?Sign In
Dismiss

Salesforce Migration Tool

Active5 years, 3 months ago

I am completely new to the salesforce type of development so please bear with me. As the title says I am trying to figure out how to undeploy/cleanup the target environment.Using the ant script I was able to pull down everything from a dev environment and deployed it successfully to a test environment. However, I also want to have the ability to cleanup this test environment before doing any additional deployments. Following the documentation I created an empty package.xml and a desctructiveChanges.xml file. However unlike the retrieval and deployment process I am unable to get this to work using wildcards. Instant proofreading for free. I am able to undeploy objects, pages, apex code if I explicitly reference it in the xml file but using * simply fails. Is it possible to do this or should I explore alternatives? Please keep in mind that deployment is of unpack-aged code.

sample from package.xml for deployment (succeeds)

sample from desctructiveChanges.xml (fails)

Quantum_EntanglementQuantum_Entanglement
7536 gold badges15 silver badges29 bronze badges

1 Answer

destructiveChanges.xml requires a strict list of components which should be removed from a target environment. Thus you need to describe all components which should be removed in the following manner:

Ant Migration Tool

Pavel SlepiankouPavel Slepiankou
2,6552 gold badges19 silver badges30 bronze badges

Ant Migration Tool Salesforce Mac

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged salesforce or ask your own question.