noeticpenguin / apex-toolingapi

Apex wrapper for the Salesforce Tooling API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apex Tooling API

Deploy to Salesforce

Reference Blogs

NOTE: This API is work in progress.

Known Issues and Gotchas

  • INVALID_SESSION_ID error message, thanks to rdehler for spotting this one, see here for how to resolve this.

Current Thinking and Strategy

There are two flavours of the Tooling API Salesforce provides, one in SOAP and another via REST. Unlike the strategy with the Apex Metadata API wrapper, the SOAP API is not compatible with Apex due to its exenstive use of polymorphic XML (e.g. xsi:type), especially in the SymbolTable type. For this reason this wrapper is focusing on the REST API, though may dip into the SOAP API depending on respective functionality.

The SOAP types have been used as a starting point for the REST types and are still being scrubbed and cleaned up. There is some initial ideas on how to get the query operation working which you can read more about in the above blog. The other motivation behind using the SOAP types was to try and use a diff of the XML Schema types each release to drive what changes are needed to keep the Apex types in sync (since the documentation does not always go into this much detail).

Contributors

TODO List

Our current TODO list is being managed via GitHub Issues

About

Apex wrapper for the Salesforce Tooling API