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
John Manager Training DepJohn Manager Training Dep 

how to restore a lightning component from backup into Salesforce org?

Hi Team,

I took back up of lightning AURA components from Salesforce org. I have the zip file containing those AURA components.

The AURA components have been purged from the recycle bin. How do I restore the AURA component back into Salesforce org?

Many Thanks in advance for all your help and support1
Arun ParmarArun Parmar
Hi John,
You can deploy aura using ANT migration tool by creating following package.xml.

 
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>AuraDefinitionBundle</name>
    </types>
    <version>46.0</version>
</Package>
John Manager Training DepJohn Manager Training Dep
Thanks. I do not have ANT set-up in my system.
Can the AURA components be restored using Salesforce workbench or any other means?
What about manual copy? Would that be good?
Arun ParmarArun Parmar
Hi John,
Manual process willbe very hectic. You can deploy using workbench by creating zip file, which contains aura folder and package.xml file.
Let me know if you face any issue.
Thanks
John Manager Training DepJohn Manager Training Dep
Hi Arun and Salesforce force forum friends,

Thanks for your prompt response. Could you please provide a sample destructiveChanges.xml file to restore an AURA component which contains the auradoc file, component file, component metadata document, css document, design file, svg document, controller js file, helper js file and renderer js file?

Also, would it be possible to correctly restore the files manually from the AURA components back-up into the Salesforce org. If yes, whst are the points to be noted before retroring the files manually.

Many Thanks in advance!