You need to sign in to do that
Don't have an account?
John Commute Tracker Dev
Schema.getGlobalDescribe().keySet().contains('site') is returning false from class but returning true from Developer console.
Hi All,
I am using survey force application by Salesforce labs. Inside SurveySitesUtil class, below code is returning false however, when I run the same code from Developer console its returning true. Also I am seeing code running from class is not pulling all the objects including 'Site".
Schema.getGlobalDescribe().keySet().contains('site')
Looking forward for assistance on this issue.
Thanks.
I am using survey force application by Salesforce labs. Inside SurveySitesUtil class, below code is returning false however, when I run the same code from Developer console its returning true. Also I am seeing code running from class is not pulling all the objects including 'Site".
Schema.getGlobalDescribe().keySet().contains('site')
Looking forward for assistance on this issue.
Thanks.
Is class written using "with sharing" keyword?
Thanks,
Pratik
Can you just replace "with sharing" with keyword "without sharing" and then try.
Thanks,
Pratik
P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.