Find the Deleted Objects link

Change Sets and Replacing Deleted Detail Objects

When creating Custom Objects with Change Sets it is not uncommon to get an oops. The difference between a smooth production release and one that leads to late nights is dealing with the issue from the root rather than the quick fix that might be forgotten between the test and the release. Sometimes going back to the beginning requires deleting the object from the target. Recently I learned that (the hard way, as usual) that deleting the object may not delete everything about the object.

In the case of  a master-detail relationship, deleting the detail object does not remove the relationship to the master object. This is discovered when attempting to re-deploy the detail object in a subsequent, improved change set.

To address this, after deleting objects that you plan to re-create with a change set:

  1. Switch to Classic mode
  2. Go to the Create > Custom Objects page
  3. Scroll to the bottom and find a link to Deleted Objects
  4. Click Erase (and subsequent prompts)
Find the Deleted Objects link
Deleted Objects link in Classic

Erase Object Link

Facebooktwitterredditlinkedinmail
© Scott S. Nelson

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.