You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your sample code for retrieving Custom fields and Custom Objects, the issue I am facing is that in our org we have around 3k custom fields,
when I try to do the same with your class ToolingApi I only get 2000 custom fields. Sample code below
ToolingAPI toolingAPI = new ToolingAPI();
List<ToolingAPI.CustomField> customFields = (List<ToolingAPI.CustomField>)
toolingAPI.query('Select Id, DeveloperName, NamespacePrefix, TableEnumOrId From CustomField ').records;
System.debug(customFields.size());
Any ideas why I am getting only 2k fields ?
Update: I figured it out , would have to retrieve records using "nextRecordsURL" .
The text was updated successfully, but these errors were encountered:
Hi Andrew,
I am using your sample code for retrieving Custom fields and Custom Objects, the issue I am facing is that in our org we have around 3k custom fields,
when I try to do the same with your class ToolingApi I only get 2000 custom fields. Sample code below
ToolingAPI toolingAPI = new ToolingAPI();
List<ToolingAPI.CustomField> customFields = (List<ToolingAPI.CustomField>)
toolingAPI.query('Select Id, DeveloperName, NamespacePrefix, TableEnumOrId From CustomField ').records;
System.debug(customFields.size());
Any ideas why I am getting only 2k fields ?
Update: I figured it out , would have to retrieve records using "nextRecordsURL" .
The text was updated successfully, but these errors were encountered: