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
GoForceGoGoForceGo 

Packaging Value Add Apex Code....

How does one go about segregating value add in Apex/package based environment?

Here is my issue:

Let's say i define a custom object called Foo with attributes A,B,C,D.along with related business logic etc...

I package this as a "Foo package"  and sell it as Foo Application.

I now want to build another application with object Zoo with it's own attributes.

However, Foo is related to Zoo and actually has a lookup field to Zoo!  The moment, I add "Zoo" as a lookup field, to Foo,  system automatically includes Zoo in the "Foo Package". Once Zoo is included, all the objects get pulled it and the whole thing becomes a mess - there is no way to disallow access to users once Zoo is installed.

Are there any suggestions/workarounds?





wilbur07wilbur07
Use Force.com IDE tool [Eclipse] to deploy what you want to the salesforce instance.

James
GoForceGoGoForceGo
In the example above, even if I use Eclipse IDE, I must deploy the object Zoo when I deploy Foo, since Foo has a lookup field to Zoo.

What might work is to deploy the Apex code separately. I don't want to deploy code from Eclipse, since I want to protect the IP.

I will have to see if I can package the code separately from the underlying objects.

I will have to play around with it.