You need to sign in to do that
Don't have an account?
steven.fouracre
Custom setting cannot soql in packages
So I've created a Public List type Custom setting and I'm accessing it in a normal way
XXX__c cs= XXX__c.getInstance('login');
system.debug('###login ' +cs.YYY__c + ' '+cs.ZZZ__c);
The 2nd line complains that it cannot find the field. Ive checked and everything exists even the record 'login'.
Note: All of the code completely works in the org that I created the package.
Not sure if there is a Salesforce bug related to Custom settings which cannot be used in packages
Its ok Ive worked it out I didnt put my namespace before the fields