Share your ideas

API to Export Query Criteria as XML

It is possible to create Queries via the CreateQuery XML API using many different criteria, however it's not currently possible to export these which makes the work of moving from an Org to another extremely difficult for client using multiple Orgs.

  • Mickael Lucarelli
  • Feb 26 2020
  • Future consideration
What is your industry? Non-Industry Specific
What is the idea priority? Medium
  • Michael Hobley commented
    January 25, 2022 14:19

    There is a GetQuery API that is not in the documentation. It just requires the ID of the query and will return the query in XML format which you should be able to use to recreate your queries for another org.


    <Envelope>

    <Body>

    <GetQuery>

    <LIST_ID>0123456</LIST_ID>

    </GetQuery>

    </Body>

    </Envelope>


  • +8