You need to sign in to do that
Don't have an account?
Naoki Kitaarashi 4
How to rename Lightning component
It's a basic question. How to rename Lightning component once created? I couldn't find any menu on Devloper console and any buttons on Setup|Develop|Lightning Components. Is it necessary to delete and create new one with new name?
Yes that is correct. You need to delete the component and create new one with new name.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
All Answers
Yes that is correct. You need to delete the component and create new one with new name.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
Easiest was to provide a new label for the component via the design file.
<design:component label="New Name"> </design:component>
SELECT Id, DeveloperName, MasterLabel FROM AuraDefinitionBundle
Now we can edit Developer Name, MasterLabel and save it. It will reflect all the place wherever the component is used. If you are using the component in controller and helper, It will reflect there also.
You can use dataloader and update records in the table "AuraDefinationBundle" .The developerName is the field that needs to be updated.
Please note you need dataloader or workbench since the object is not accessible via apex.
Best,
Usman Ali
Select Id, DeveloperName from AuraDefinitionBundle
Edit developer name --> save
Work Done.
Please go through the below code.
https://www.tutorialkart.com/salesforce/salesforce-lightning-expression-component/
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Sachin Arora
www.sachinsf.com
https://deezloader.info/deezloader-remix/ (https://deezloader.info/deezloader-remix/)
https://deezloader.info/deezloader-reborn/
Hi,
you do not need to delete existing component,
Let's try to use the Developer Console Query Editor and update the names of the Lightning Components to see what happens. Run this query in the Query Editor.
Select Id, DeveloperName from AuraDefinitionBundle
Edit developer name --> save
On the Macintosh side you can run the query mentioned:
Select Id, DeveloperName from AuraDefinitionBundle
Using one of my favorite well maintained free apps from Pocket Soap: SoqlX (https://www.pocketsoap.com/osx/soqlx/)
or https://www.pocketsoap.com
Select Id, DeveloperName,MasterLabel,ApiVersion,Description from AuraDefinitionBundle update the required information