3

I am experiencing some inconsistent behavior. On one org - I'm doing a SOSL (Search Query) against a custom setting and it works fine. But on a different org - I get entity type My_Custom_Setting__c does not support search.

Did I forget to configure something? I'm not sure why it works on one org and not another. This happens in the developer console - so we are not even talking about code yet. Just a straight SOSL query.

FIND {name} IN ALL FIELDS RETURNING MY_Custom_Setting__c (id, name)

5
  • 1
    Are you running the query as the same profile in both orgs? Same API Version? – Adrian Larson Mar 7 '16 at 17:15
  • Whats the visibility of custom settings ? Is it protected? – Mohith Shrivastava Mar 7 '16 at 17:40
  • Yes, the custom settings are protected - but that's the same in both orgs. And since they are dev orgs - I'm always logged in as the system admin user. – Patrick Mar 7 '16 at 18:15
  • both orgs are List Settings ? – cropredy Mar 9 '16 at 2:09
  • yes - the orgs are deployed through our Jenkins/Ant scripts - on a nightly basis from the sale code base. Based on what people have been saying it seems to be that this should work - you should be able to run SOSL queries against the custom settings - right now I've just switched to SOQL and that works ok for now – Patrick Mar 9 '16 at 21:25
-1

I think in one org you didn't have it enabled, it's something that must be turned on in setup.

https://library.myguide.org/myguide-library/salesforce/salesforce-web/salesforce-for-admins/data-management/guide/how-to-enable-sosl-on-custom-settings-under-schema-settings-in-salesforce-lightning

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.