+ Start a Discussion
nagasnagas 

renaming name of an object

hi all,

 

I am trying to rename the name of couple of objects. I know there will be dependency for that if any apex references exists for the object it will not allow to rename. In the same way if i try change in the apex and try to save it will not allow since the object doesnot exists

 

Is there anyway to overcome this and rename the objects..

Best Answer chosen by Admin (Salesforce Developers) 
b-Forceb-Force

I dont think there is a straight way to overcome this.

 

you can achive this by some other way

Extract org data in eclipse project (by creating force.com project)

Search all references using search utility , comment the part accordingly [ be careful while commenting , again yu nee dto uncomment it]

Save to Server

go to salesforce rename the custom object name

using eclipse, replace all OLD_Custom_object__c by NEW_Custom_object__c

uncomment all changes

Save to server

 

hope this trick will help you

 

Thanks,

Bala

 

 

 

All Answers

b-Forceb-Force

I dont think there is a straight way to overcome this.

 

you can achive this by some other way

Extract org data in eclipse project (by creating force.com project)

Search all references using search utility , comment the part accordingly [ be careful while commenting , again yu nee dto uncomment it]

Save to Server

go to salesforce rename the custom object name

using eclipse, replace all OLD_Custom_object__c by NEW_Custom_object__c

uncomment all changes

Save to server

 

hope this trick will help you

 

Thanks,

Bala

 

 

 

This was selected as the best answer
nagasnagas

thanks i did the same its working,.