Permanent link to this article: https://www.sfdcpoint.com/salesforce/migration-using-ant-in-salesforce/

3 comments

    • Maryem Bourhi on March 6, 2015 at 3:10 pm
    • Reply

    I have a question, when retrieving i want to retrieve object related triggers too , how can i modify package.xml to do so

    1. Hi Maryem,
      )
      To retrieve trigger you can use following syntax:

      If you want to retrieve all trigger from Org use following syntax:

      *
      ApexTrigger

      And if you want to retrieve any specific trigger(say SampleOnInsertTrigger, then use following syntax:

      SampleOnInsertTrigger
      ApexTrigger

      Thanks
      Ankush Dureja

      • Shamsher Singh on July 16, 2015 at 11:34 am
      • Reply

      @maryem_bourhi:disqus : I don’t think there is any provision where you can retrieve object related triggers or if there is any then i am not aware of. The commands Format says that you can retrieve either all of the triggers by using wildcard character “*” or any specific trigger or a group of triggers by giving all the names in different different tag.

Leave a Reply

Your email address will not be published.