You need to sign in to do that
Don't have an account?
Madhan Raja M
Can we access a class from one Manage package to another Manage Package
Greetings,
Can we access a class from one Manage package to another Manage Package? If yes, please let me know how it can be achieved?
Thanks in Advance.
Madhan Raja M
You can't solve it - you have created a dependency on managed package a, therefore that has to be installed into any organisation that wants to install managed package b. These are known as extension packages.
All Answers
You can do this if the second managed package is an extension to the first and the class is global. To achieve this you would have to install the first managed package into your second managed package developer org.
Thanks for your reply Bob!
It would be really grateful, if you can give me a sample code to achieve it.
Madhan Raja M
I'm afraid I don't have any sample code that I can share - our extension and base packages are company IP.
A great resource for this is : http://wiki.developerforce.com/page/Architecting_a_Commercial_Application
Hi Bob,
Here is my scenario, I need to create two Managed Packages called Package-A and Package-B. In Package-A, there will be a method which should call the class in Package-B. I am able to build Package-B without any issue.
However, am not able to create Package-A without including ‘InvokeService’ class in the package.
Please refer the below snapshot for more information:
Thanks in advance!
Madhan Raja M
When I've done this, building the package just makes the point that some of the components I'm relying on are part of an existing package.
Thanks for the quick response, Bob.
Can you please elaborate on the same. Because I am working on packaging for the first time.
Madhan Raja M
I have a dev org with package B installed into it (not the package B dev org) and I then create my additional functionality and when I upload package A it tells me that there is a dependency on package B.
Correct, Bob. I am facing the same issue. How to solve it?
Madhan Raja M
You can't solve it - you have created a dependency on managed package a, therefore that has to be installed into any organisation that wants to install managed package b. These are known as extension packages.