You need to sign in to do that
Don't have an account?
Schema Describe FieldSets is not working!
Hi guys, I realized than from the 25.0 API version, SObject describe's methods are not working fine, I tried the example in Force.com Apex Guide and gave me an empty map:
Map<String, Schema.FieldSet> FsMap = Schema.SObjectType.Account.fieldSets.getMap();
Same with:
Schema.DescribeSObjectResult d = Account.sObjectType.getDescribe(); Map<String, Schema.FieldSet> FsMap = d.fieldSets.getMap();
or with:
Schema.SObjectType sot = Schema.getGlobalDescribe().get('Account'); Schema.DescribeSObjectResult d = sot.getDescribe(); Map<String, Schema.FieldSet> FsMap = d.fieldSets.getMap();
Anyone had the same problem? Is there any solution to this issue?
Thanks a lot.
Hi Rahul, one question: What kind of org are you using for test it? A Developer org?
Thxs
Mmm... I don't understand.. I'm trying in a DEV too
If I try:
I get:
It is working in my sandbox too.
Input:
Output:
Try it in console log too.
Try logging a case to salesforce.
Yes, I tried in the console log and in an apex class with differents api versions.. nothing..
I tried your example:
And I got:
: /
I tried it in 2 different DEV's Orgs and in one production's org, all different servers... this is really weird!
Thanks for your help.
Best Regards,
Juan.
I faced same problem earlier and update my org and it was returning results now happy:)