[SalesForce] change existing used field name in SF

Sometimes, I need to change the existing custom field name which is currently using.
There are a lot of places using that field in coding etc.

So basically, system doesn't allow us to change the field name.

How can I manage that kind of situation without causing any troubles to the existing system?
What kind of approach should I take?

I don't want to lose the existing data too.

Please share us your ideas or approach.

Best Answer

Pretty much the only way to do this is to comment out all references to that field in your code and pages, rename it, and then uncomment and change the code references. It's painful but really the only option.

That said, do you really need to change the name of the field? Is changing the label of the field not enough?

Related Topic