0

There are more than 1000 fields in Account object and there is an API that returns all fields, given an object name. Call from the UI breaks since it's hitting the governor limits. Is there any better approach in handling this issue. We did think of batch API calls but would like to know how such cases are handled and if there are any better approaches.

2
  • 1
    It will be really helpful if you can share some code so that we can have look at it and provide suggestion for optimizing. AFAIK, the describe limit was removed for all API's Descibe Limits Summer 14. You might be running into some other limit like CPU Time as describe calls are CPU time consuming. Is your code invoked through a trigger?
    – manjit5190
    Commented Oct 5, 2015 at 6:04
  • 1
    Honestly, 1000 fields on a given object in indicative of other issues.....How is it handled? A review of the business requirements and data model and a final plan to get the field count down.
    – Eric
    Commented Oct 5, 2015 at 14:28

0

You must log in to answer this question.

Browse other questions tagged .