function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neelam BasakNeelam Basak 

Can we deploy Reports, Lightning Components and Documents from Sandbox to UAT through ANT? If yes, please help me to know what will be the <name> and <memebrs> for them.

Hi Experts,

I need to deploy Reports, Lightning Components and Documents from Sandbox(Devpro) to UAT. We are using ANT for deployment. 

Can anyone please help me to know what will be the <name> and <memebrs> for them.
Best Answer chosen by Neelam Basak
Khan AnasKhan Anas (Salesforce Developers) 
Hi Neelam,

Greetings to you!

Lightning Components:
<!-- Lightning Component -->
<types>
    <members>ComponentName</members>
    <name>AuraDefinitionBundle</name>
</types>​

Reports:
<types>
        <members>ExtraReports</members> <!--Report Folder-->
        <members>ExtraReports/AnyOccupation</members> <!--Report-->
        <members>unfiled$public/Test</members> <!--Report from Unfiled Public Reports-->
        <name>Report</name>
</types>

Documents:
<types>
        <members>Images/Logo.png</members>
        <name>Document</name>
</types>​

Please refer to the below link which might help you further with the above issue.​

http://dazeworks.com/2018/05/09/ant-migration-tool/
http://bobbuzzard.blogspot.com/2016/03/deploying-lightning-components-go-big.html


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Neelam,

Greetings to you!

Lightning Components:
<!-- Lightning Component -->
<types>
    <members>ComponentName</members>
    <name>AuraDefinitionBundle</name>
</types>​

Reports:
<types>
        <members>ExtraReports</members> <!--Report Folder-->
        <members>ExtraReports/AnyOccupation</members> <!--Report-->
        <members>unfiled$public/Test</members> <!--Report from Unfiled Public Reports-->
        <name>Report</name>
</types>

Documents:
<types>
        <members>Images/Logo.png</members>
        <name>Document</name>
</types>​

Please refer to the below link which might help you further with the above issue.​

http://dazeworks.com/2018/05/09/ant-migration-tool/
http://bobbuzzard.blogspot.com/2016/03/deploying-lightning-components-go-big.html


I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Neelam BasakNeelam Basak
Thanks, it worked.