I have wrongly named one component,now i would like to change the developer name i think we cannot do from developer console, i tried with back end logic with execute anonymous code

AuraDefinitionBundle auraDfntionBundle = [Select Id,DeveloperName from AuraDefinitionBundle where DeveloperName like '%test%' limit 1];
auraDfntionBundle.DeveloperName = 'New Test';

i am getting the following error

DML not allowed on AuraDefinitionBundle

but as per in document , this object type has update support call, please let me know if am missing anything here.



The document link you have is of SOAP API .This means you will need to use workbench or dataloader to load the records and perform update via the SOAP API .The object is not available via apex interface .


Delete the component from dev console then create it again with the good name :)

  • yes thought of it but just want to try this way also(as it has API). – Raj_SFDC Dec 15 '16 at 9:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.