You need to sign in to do that
Don't have an account?
nirp
Write code for community without forcing installing org to enable the feature
Hi,
I would like to include some specifc code in my package for community users.
I don't want to enforce enabling of the community feature in the installing org, but only to use it in case the community feature is enabled.
Currently, after adding the code, I get Missing Organization Feature: CommonPortal null when installing the packgage on orgs that doesn't support community.
What is the best practice to incorporate the code in the package without forcing the installing org to support this feature?
Thanks,
Nir
I would like to include some specifc code in my package for community users.
I don't want to enforce enabling of the community feature in the installing org, but only to use it in case the community feature is enabled.
Currently, after adding the code, I get Missing Organization Feature: CommonPortal null when installing the packgage on orgs that doesn't support community.
What is the best practice to incorporate the code in the package without forcing the installing org to support this feature?
Thanks,
Nir
See:
All Answers
See:
I was able to change the relevant code to use dynamic APEX and SOQL.
The one thing I didn't manage to do is to call a static method dynamically, I want to call Network.getLoginUrl static method.
Can you help with that?