• Who We Are
    • About Us
    • Factor - D
    • Our Networks
    • Accolades
  • What We Do

    SERVICES

    • Consulting / Implementation
    • Migration
    • Development

    OUR SOLUTIONS

    • GUMU Integration
    • BPortaly
    • Sales Commission
    • Shipping
    • IOT

    COMPREHENSIVE SERVICES FOR

    ERP

    • Acumatica
    • Sage Intacct
    • Sage X3
    • Sage 300
    • Sage 100
    • Sage 500

    CRM

    • Salesforce
    • D365 CRM
    • Sage CRM
    • Creatio
    •  

    Other Solutions

    • E-commerce
    • EDI
    • POS
    •  
    •  
  • Resources
    • Case Study
    • Blogs
    • Videos
    • Ebooks
    • News
  • +1 888 221 6661
Contact us
Career |
  • Africa
  • Middle East

Salesforce.com - Tips, Tricks and Components

Welcome to the treasure trove of Greytrix’s Salesforce knowledge. This page is dedicated to providing you with insightful articles, expert tips, and the latest updates on Salesforce CRM. Whether you want to enhance your Salesforce experience or want to stay updated on industry trends, our blog has you covered. In addition, we also offer cutting-edge solutions for Salesforce and are committed to delivering unparalleled support and innovation for Salesforce users. Explore and enhance your Salesforce experience with Greytrix.

Using Force.com Migration Tool Part II – Deployment

By greysalesforce | November 23, 2015
0 Comment

In our previous blog “Using Force.com Migration Tool Part I – Configuration”, we discussed about setting up environment for using Ant tool. In this blog we will discuss about how to use Ant based Force.com Migration tool for metadata migration.
Real-time, bi-directional, multi-company – Sage ERP Integration with Salesforce

Steps for Metadata migration using Ant Force.com Migration tool –

  • Preparing build: Preparing build for your project needs 3 files as follows.

  • Build.xml
  • Build.properties
  • Package.xml
  • Create new folder for storing your project migration Data.
  • Copy ‘build.xml’ & ‘build.properties’ files from unzipped in step 2. i.e. salesforce_ant_33.0\sample & paste it into project folder (created in previous step).
  • Edit ‘build.xml’ & ‘build.properties’ as below:
  1. build.xml:

Specify the actions/operations that you want to perform (either retrieve or deploy or any other possible operation). These are also called as targets. So, you can run these targets one by one and complete the task in sequential manner. Every target has given a name which is used for calling targets from command prompt.

This file refers build.properties file where you have mentioned all the required details like username, password, and serverurl.

E.g.

  • Retrieving the Package contents from Source Salesforce Org into directory

<target name=”<Command name (User defined)>“>
<mkdir dir=”< folder to be created to store retrieved data>“/>
<sf: retrieve username=”${sf.username}” password=”${sf.password}” serverurl=”${sf.serverurl}” maxPoll=”${sf.maxPoll}” retrieveTarget=”<folder specified in mkdir>” packageNames=”<your package name>“/>
</target>

  • Deploying the Package contents into Target Salesforce Org

<target name=”<Command name (User defined)>“>
<sf: deploy username=”${sf.username}” password=”${sf.password}” serverurl=”${sf.serverurl}” maxPoll=”${sf.maxPoll}” deployRoot=”<Path of folder which is to be deployed>” rollbackOnError=”true”/>
</target>

  1. build.properties:

Specify the login credentials for the desired Salesforce organization on which you want to perform the operation (deploy or retrieve)

sf.username = <Insert your Salesforce username here>
sf.password = <Insert your Salesforce password along with security token here>
sf.serverurl = https://login.salesforce.com
sf.maxPoll = 20
(Note: All contents displayed above in blue color are need to be customized/defined by user.)

  1. package.xml:

This file is created in Force.com IDE (explained in Step 7).
It contains information of metadata components to be migrated in xml format.

  1. Sequence of Metadata Migration
  • Logical steps for Data Migration are:

– Retrieve Metadata from Source Salesforce Org using ant-retrieve command.
– Retrieved data is stored in a folder specified in ant command.
– Stored metadata is gets deployed in Target Salesforce Org using ant-deploy command.

  • Detailed steps to migrate metadata from one Salesforce org to another:

– Open Force.com IDE
– Create new Force.com Project for the source Salesforce Org as follows:

  1. Open Eclipse & Change its Perspective to ‘Force.com’
  2. Click on File -> New -> Force.com Project
  3. Specify all credentials of Source Salesforce Org, Click Next.
  4. Choose desired Components to be migrated i.e. Package, VF pages & Classes or all components.
  5. Click Finish
  6. Now Project has been created in IDE. Expand it & in source directory, you will find package.xml file.
  • Create new folder for storing metadata & copy above package.xml file in it.
  • Also copy build.xml & build.properties files in newly created folder. Edit them as specified in step 6.
  • Open Command Prompt
  • Run the ant commands
  1. Running Ant Commands

Ant Command to run above script is:
ant <target name specified by user>Force.com migration tool - deployment

Thus, we have discussed deploying project/metadata in Salesforce Org using Ant based Force.com Migration tool.

About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offer Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that require apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts

  • Using Force.com Migration Tool Part I – Configuration
  • Enable Lightning Experience on Salesforce
  • Pre-release orgs in Salesforce
  • Apex message as Debug Tool
  • Deploying project using Force.com IDE

Category: Salesforce Services Tags: Deployment, deployment in salesforce, Force.com Migration, Force.com Migration Tool, metadata, Metadata migration, Migration
Post navigation
← Using Force.com Migration Tool Part I – Configuration Number and Currency field shortcuts in Salesforce →

Greytrix Websites and Blogs

  • Greytrix
  • GUMU™ Cloud
  • Greytrix Africa
  • Sage X3 – Tips, Tricks and Components
  • Sage 100 & 500 ERP Tips and Tricks
  • Sage 300 – Tips, Tricks and Components
  • Sage CRM – Tips, Tricks and Components

GUMU™ Salesforce Sage Integration

https://www.youtube.com/watch?v=X9Dg4uwGT-0

Categories

  • GUMU™ Features
  • GUMU™ Salesforce
  • GUMU™ Tricks & Tips
  • Salesforce Services
  • Uncategorized
sage enterprise management services

Recent Posts

  • Is Your Salesforce Built For The New Era Of Financial Services?
  • Streamlining Order Promotion in Salesforce: GUMU™ Now Supports Direct Promotion from Standard Order Page
  • View Sage 100 Customer Statistics in Salesforce with GUMU™ Lightning Integration
  • GUMU™ Feature: Improved Security Tree View with Smart Text Search
  • The AI Advantage: How Financial Institutions are Winning Big with Salesforce CRM

Popular blogs

  • Thinking of enhancing your business processes? Get the best ERP – CRM connector on Salesforce AppExchange!
  • GUMU™ for Salesforce – Sage ERP Integration
  • Leverage real-time enterprise data for better insights of your Customers with Salesforce – Sage 300 integration
  • GUMU™ Integration for Salesforce with Sage 300

Archives

Awards

Premier Partner of the Year Premier Partner of the Year
Platinum Partner of the Year Platinum Partner of the Year
The CEO Story The CEO Story
Gold Partner pf the Year Gold Partner pf the Year
Top Excellence Distributor Top Excellence Distributor
  • na.sales@greytrix.com
  • +1 888 221 6661
  • B301, 3rd Floor, Everest Nivara Infotech Park, MIDC, Turbhe,
    Navi Mumbai 400 705. India

Our Global Locations >>

Who We Are

  • About Us
  • Factor - D
  • Our Network
  • Accolades
  • Career
  •  
  •  

Services

  • Consultation & Implementation
  • Migration
  • Development

Solutions

  • GUMUTM Integration
  • BPortaly
  • Sales Commission
  • Shipping
  • IOT
  •  
  •  

ERP

  • Acumatica
  • Sage Intacct
  • Sage X3
  • Sage 300
  • Sage 100
  • Sage 500

CRM

  • Salesforce
  • D365 CRM
  • Sage CRM
  • Creatio
  •  
  •  
  •  

Other Solutions

  • E-commerce
  • EDI
  • POS

Resources

  • Case Study
  • Blogs
  • Videos
  • E-books
  • News
  •  
  •  

Connect

  • Contact Us
  • Privacy Policy
  • Terms Of Use
  •  

© 2025. Greytrix, All Rights Reserved