+ Start a Discussion
Linda 98Linda 98 

Migration using ANT tool.

I am using  ANT tool to get data from org .Then i need to deploy to another org.

How can i get Reports and dashboards in to my local folder?
How can i retrieve them from one org?
Also email templates?
Do i need to indivdually get field updates and other?or just workflow rule brings them?

Thank you .
Edwin VijayEdwin Vijay
Here is a complete list of metadata types you can export out and import https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_types_list.htm

I would recommend using the eclipse tool to generate your package.xml, the UI is easy to select components you want to download. You can then use the downloaded folders and package.xml to deploy to your target org
Linda 98Linda 98
Thanks,Yes i am sure that eclipse is more easy tool than ANT but for some reason its not working on my system.So opted for ANT tool.
Thank you for the lnk.I couldnt get how can i get reports from particluar folder.


This doesnt work for me.Please suggest.
Edwin VijayEdwin Vijay
Please use as below

pravin joshi 25pravin joshi 25
Hi, I am geeting message " Total number of items to be retrieved for Metadata type 'Report' = 0 " 


        <members>MEED - KPI, PERFORMANCE & COMPLIANCE/KARLA - Customer Journey compliance rep</members>



 <target name="getFromMeedTrg2">
      <sf:bulkRetrieve username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" metadataType="Report" retrieveTarget="Dev_src"/>

is there any changes I require please help me
Abhay Lalpotu 11Abhay Lalpotu 11
You'll need a more specific repro scenario. I'd suggest trying to move just a single report. Just to be clear, the steps are:
download a fresh copy of your reports metadata via Eclipse
manually edit the package.xml to change the folder of a report. (I think you need to make sure the folder exists on the server, and that you are referring to the developer name of it, e.g. Folder_A/My_report)
in the underlying file system, move that report to a folder of that name
in Eclipse, do a project refresh from the local file system (NOT the server)
in Eclipse, do a save to server
the report should move
If this also does not work, post your package.xml before and after, and the exact steps you followed.
The Reports can be migrated using the following package.xml tag. Hope this will be helpful. The report can be find at the "Unfiled Public Reports"
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">