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
Sudipta Ghosh 9Sudipta Ghosh 9 

tooling api to fetch relationship information of fields from another Org


I am using Tooling api to fetch Custom object and field details from another Org. Now when I am trying to find relationship of all fields from all objects I could use either CustomField or FieldDefinition object. But I am finding below limitation for each which is resticting me to implement the solution. Please suggest
1. Tooling API CustomField object: querying the CustomField object to find the Relationship (Lookup or Master Details) it returns every relationship except any relation with user object. It's not considering any relation with User object.

2. Tooling API FieldDefinition object: Can't query for all objects, it's returning Relationship information when <10 objects in the condition. Whenever you put more than 10 objects in the condition it's returning error("bind variables only allowed in apex code") though the error message seems to be not the right one. Now the problem is we can't loop and make multiple call outs, bad design when we connect to a large org.