Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Re: Expression of type Schema.DescribeSobjectResul...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Expression of type Schema.Des cribeSobje ctResult has no member named fieldsets
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 12:09 PM
Hi ,
I am trying to retreive the describe information on field sets on the opportunity object and am getting the following error while trying to save my class.
Save error: Expression of type Schema.DescribeSObjectResult has no member named fieldsets
Here is the code i am trying to save
Schema.Describesobjectresult descSobjectResultObj = Opportunity.sobjectType.getDescribe();
Map<String,Schema.FieldSet> fieldSetNameFieldSetSchemaMap = descSobjectResultObj.fieldSets.getMap();
I am working in the sandbox. I know that field sets is only released in beta mode , so I am not sure if there is some other setting/configuration that we need to be set in order to get this working in apex code. Maybe the API version on the class. I am on 23.0 . I am not sure. Any help is greatly appreciated.
Thanks,
Re: Expression of type Schema.Des cribeSobje ctResult has no member named fieldsets
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-05-2013 01:52 PM
You need to upgrade the API version of the class. I don't recall when fieldsets was added exactly, but I'm pretty sure it wasn't available on 23.
Dan
AdvancedApex.com

