function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ayub AnsariAyub Ansari 

INVALID_TYPE Error while fetching RecordTypeInfos as sub-query on EntityDefinition object in Tooling API

Hi Salesforcian,

As per the definition of object EntityDefinition (https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_entitydefinition.htm#recordtypessupported) (a tooling API object), we can query "recordTypeSupported" as sub-query:

User-added image


By using workbench, I am trying to query same data as following but I am getting exception - "Didn't understand relationship 'RecordTypesSupported' in FROM part of query".
/services/data/v34.0/tooling/query/?q=select+id,+(select+recordTypeInfos+from+RecordTypesSupported)+from+EntityDefinition+where+KeyPrefix='001'
Does anybody have a clue why this is happening?

Thanks in advance!!
-Ayub. 


 
Ayub AnsariAyub Ansari
Please note that I am using API version 35.0