• Christopher Boyles
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,
We have a custom Form, for which the page is written in VF and the controller is written in Apex. All of the fields the form is using are custom fields and are being referenced in the VF page and extension controller class. The API names were created poorly by the previous admin and needed to be changed.
In our Development Sandbox I edited the VF page and Controller class to point to another field, to break the reference, then I changed the API name of the field and then edited it back into the VF page and Controller class. This all worked fine, but was just a bit time consuming and after testing the form still worked in the Dev sandbox.
When it came to pushing it to the Testing environment however, the fields didn't update the old ones, they brought them in as if they were new fields. I thought Custom fields had an underlying Salesforce "ID" so that if something like this happens then it doesn't create new fields, it overwrites what has the matching ID?
Has anyone got any ideas on how I can fix it so that If I push to production I won't get a whole new set of fields instead of updating the old ones. This would mean migrating the data in about 60 fields for a few thousand forms to the new fields if I am unable to do this. As well as this I would need to go through and fix all of the reports and page layouts manually as well which I don't think we should have to do.
Thanks