function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kristin CaldwellKristin Caldwell 

Is it possible to package objects without apex classes?

I need to package (unmanaged) some objects and fields from one production instance to send to another production instance. However, there are some unused Apex classes that are automatically included with one of the objects I need to package. Is there a way to package these objects without the classes?
Anupama SamantroyAnupama Samantroy
Hi Kristin,

Please check if any of the Buttons, Links, and Actions on that object are overridden and are using visualforce pages. If so then when you include the object in the package the VF page and the classes will be included by default(which makes sense).
If you just want the objects then you can changes the buttons, links and actions to default and then try to create the package.

Thanks
Anupama