Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to retrieve custom fields from standard object using Ant Migration in Salesforce?

    Tagged: Ant Migration, Custom Fields, Metadata, Package XML, Standard Objects

    • Salesforce® Discussions

      How to retrieve custom fields from standard object using Ant Migration in Salesforce?

      Posted by Anurag algoworks on August 21, 2018 at 11:52 AM

      While retrieving custom fields from Standard object using Ant Migration, do we need to list all of the fields in package.xml or is there another way to do it?

      shariq replied 7 years, 2 months ago 4 Members · 3 Replies
      • Ant Migration
      • Custom Fields
      • Metadata
      • Package XML
      • Standard Objects
    • 3 Replies
    • madhulika shah

      Member
      August 21, 2018 at 12:52 PM

      Hi Anurag,

      Yes, we need to list all the fields in package.xml. As per the documentation the CustomField metadata type does not support wildcards sadly. You can access Custom Fields on Standard Objects by using the CustomObject metadata type as described hereagainst specific Standard Objects. Then parse the .object file to build your destructiveChanges.xml file. Finally you can also use the sf:listMetadata task to download a list of all custom fields and then filter locally for Standard objects.

      <sf:listMetadata
      username="${sf.username}"
      password="${sf.password}"
      metadataType="CustomField"/>

       

    • Parul

      Member
      September 21, 2018 at 1:52 PM

      Hi

      The Documentation the custom field metadata type does not support wildcards and you can access field on Object by using metadata type on standard type object. Finally, you can use sf:listmetadata task to download the list of all custom fields.

       

      Thanks.

    • shariq

      Member
      September 22, 2018 at 2:53 AM

      Hi,

      Try this in your xml file -

      <types>
      <members>Account.PayeeNameOverride1__c</members>
      <members>Account.PayeeNameOverride2__c</members>
      <members>Contact.JobDescriptionDate__c</members>
      <members>Contact.JobDescription__c</members>
      <name>CustomField</name>
      </types>

      Hope this helps.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    Salesforce Visualforce – Implemantation using SelectOption

    Salesforce Visualforce - <apex:actionFunction> Implementation using SelectOption

    Blog in Others, Salesforce Apex, Visualforce

    Hello guys, Today I am going to show how to make show how to use <apex:actionFunction>. In this article, I am going to render all…

    apex:actionFunction, Option Class, Salesforce Accounts, Salesforce Apex, Salesforce Contacts
    Avnish Yadav Sep 26, 2018
    9,417  Views
    Salesforce Analytics Cloud and Integration Cloud | The Ultimate Guide

    Salesforce Analytics Cloud and Integration Cloud | The Ultimate Guide

    Blog in Salesforce

    Salesforce Analytics Cloud, also known as Einstein Analytics, is a powerful data analytics tool that helps businesses make better decisions by providing them with real-time…

    APIs, Application Networks, Apps, Artificial Intelligence, Automate Service Processes
    bhawana Apr 13, 2023
    1,630  Views

    How to Integrate Calendly with Salesforce: A Detailed Guide

    Blog in Salesforce integration

    In today’s fast-paced business environment, efficiency in scheduling and managing appointments is crucial. Integrating Calendly, a popular scheduling tool, with Salesforce, the leading customer relationship…

    Calendar Integration, Calendar Sync, Calendly, Calendly Events, Calendly Features
    Kizzy Consulting Jun 12, 2024
    521  Views

    Popular Salesforce Videos

    Getting started with Salesforce integration patterns using MuleSoft

    Getting started with Salesforce integration patterns using MuleSoft

    Video in Salesforce Integration

    Learn how to develop different integration patterns between Salesforce and external systems. You can read the full tutorial, and download the project jar file by…

    Salesforce Training, Salesforce Integration, Salesforce Video, #integration, Salesforce Learning
    Neha Yadav Jul 31, 2020
    2,258  Views
    Visualforce Training for Beginners : Visualforce Tags in Salesforce

    Visualforce Training for Beginners : Visualforce Tags in Salesforce

    Video in Visualforce

    This video helps you to learn following topics: Visualforce Tags Standard Controllers Associating a Standard Controller with a Visualforce Page What are action methods? Action…

    salesforce training videos for beginners, Salesforce Developer, Salesforce Tutorial for Beginners, salesforce platform, Cloud Computing
    Abhay Mar 7, 2018
    1,551  Views
    5 Tips on How to Run Your Pipeline Engine to Drive Growth | Salesforce on Salesforce

    5 Tips on How to Run Your Pipeline Engine to Drive Growth | Salesforce on Salesforce

    Video in Salesforce Training

    Salesforce’s revenue has been on a firm upward trajectory for years, and every year we see terrific growth. How do we do it? I’ll let…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Revenue, Salesforce Video
    Jogender Jun 17, 2022
    1,601  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2025 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.