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
ymnymn 

How can I access custom setting (which is not part of the package) from managed package apex code?

Hi

 

Can I get a custom setting value from a  managed package apex code (the custom setting object is not part of the package) ?

 

More details:
I got an error "Custom Setting cannot be referenced outside code from the same namespace" when try to query custom setting object from managed package. What does it mean and how can I get this custom setting value?

 

Thanks
Yitzchak

Anup JadhavAnup Jadhav

You cannot access custom setting in an org from a managed package code.

 

- Anup