Closed rdehler closed 9 years ago
Replace with this and it works, FYI @afawcett
List<ToolingAPIWSDL.sObject_x> customObjects = (List<ToolingAPIWSDL.sObject_x>)
toolingAPI.query('Select Id, DeveloperName, NamespacePrefix From CustomObject Where DeveloperName = \''+objectName+'\'').records;
ToolingAPIWSDL.sObject_x customObject = customObjects[0];
Id customObjectId = customObject.Id;
List<ToolingAPIWSDL.sObject_x> customFields = (List<ToolingAPIWSDL.sObject_x>)
toolingAPI.query('Select Id, DeveloperName, NamespacePrefix, TableEnumOrId From CustomField Where DeveloperName = \''+fieldName+'\' and TableEnumOrId = \'' + customObjectId + '\'').records;
Thanks @rdehler, speaking with @dancinllama recently we feel we may want to return to the REST API wrapper approach, now that it appears to support bulk. Sorry for the confusion in the meantime.
I tried to convert this sample to using the WSDL: http://andyinthecloud.com/2014/01/05/querying-custom-object-and-field-ids-via-tooling-api/
Upon trying to run this, I get:
Am I missing something obvious?