Update Apex Page via Tooling API in Salesforce
Update Apex Page via Tooling API in Salesforce What is Tooling Api? Tooling api is for Building custom development tools for Force.com applications. Tooling API makes many development tasks easier. When to use Tooling API? When You want to add functionality to your existing development and integration tools or you want to build specialized development tools for a specific application or service. Tooling API provides both SOAP and REST interfaces. Use REST API if you’re using a language that isn’t strongly typed, like JavaScript. The Tooling REST API can be used just like the Force.com REST API. To update an Apex Page: Steps are below: First we need to create Metadatacontainer object example: Httprequest req =new HttpRequest(); req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v28.0/tooling/sobjects/MetadataContainer/'); req.setHeader('Content-Type','application/json'); req.setHeader('Authorization','...