You need to sign in to do that
Don't have an account?
backup custom object before sandbox refresh
Hi,
I was just wondering, can you backup custom object, it's field and security setting before doing a refresh? I just lost a custom object I was working on in Fullcopy sandbox. Without realizing it's not in production, I did a refresh and lost all my work.
I know you can backup data means each records of the object. However, I haven't seen any post regarding the object backup.
I was just wondering, can you backup custom object, it's field and security setting before doing a refresh? I just lost a custom object I was working on in Fullcopy sandbox. Without realizing it's not in production, I did a refresh and lost all my work.
I know you can backup data means each records of the object. However, I haven't seen any post regarding the object backup.
The easiest way to explain it would be to suggest getting the force.com IDE, in which you can create a "New Force.com Project" and select to download the metadata for all your standard and custom objects (by default I think you also get classes, pages and triggers). How to do this is all well documented on the internet.
Once you have this lark downloaded to your machine, go and find the object file for the custom object you want to preserve, it will look something like this, but much longer (as there is a lot of data even in the simplest objects)
If you save that file away somewhere, and once you have done a Sandbox refresh (and then refreshed the project in Eclipse) if you copy those files BACK into the object folder, you will find, once correctly synced, that the custom object and all its fields and settings are now back and safe in your sandbox! Getting some more complicated permissions stuff like permissions sets takes another level of metadata scraping, but this should get you on the road to saving and restoring your custom objects.
Saving the meta data of an object and it's fields can be a good way to backup/version control them as well.
All Answers
The easiest way to explain it would be to suggest getting the force.com IDE, in which you can create a "New Force.com Project" and select to download the metadata for all your standard and custom objects (by default I think you also get classes, pages and triggers). How to do this is all well documented on the internet.
Once you have this lark downloaded to your machine, go and find the object file for the custom object you want to preserve, it will look something like this, but much longer (as there is a lot of data even in the simplest objects)
If you save that file away somewhere, and once you have done a Sandbox refresh (and then refreshed the project in Eclipse) if you copy those files BACK into the object folder, you will find, once correctly synced, that the custom object and all its fields and settings are now back and safe in your sandbox! Getting some more complicated permissions stuff like permissions sets takes another level of metadata scraping, but this should get you on the road to saving and restoring your custom objects.
Saving the meta data of an object and it's fields can be a good way to backup/version control them as well.