Blogs
-
How to Choose the Initial Record from a Set of Multiple Records
QUESTION I’m looking for some assistance in a simple SOQL statement. I haven’t written SQL for over 15 years (so a real newbie to SOQL) Looking for what i believe must be a simple SOQL statement. I used SQL many years ago but now have an urgent need to get my data volumes down, fast.…
-
Generating an Apex Class Using the SOAP Tooling API and MetadataContainer
QESTION It’s fairly easy to create an ApexClass in the SOAP Tooling API: This immediately creates the class in your org. However, I would like to be able to utilize the MetadataContainer functionality to create classes in this manner: When I try this, I get an error as follows: Adding a line to populate the Content field…
-
Performing an UPDATE on a Custom Field Using the SOAP Tooling API
QUESTION I’m using the SOAP Tooling API to try and update a CustomField (posting to /services/Soap/T/29.0) The method signature is SaveResult[] update(sObject[] sObjects) – and CustomField extends sObject so it shouldn’t be a problem to send that down the wire. However I encounter: INVALID_TYPE: Must send a concrete entity type. Then I looked at my raw XML on the wire, I can’t say I’m surprised!…