Posts

Showing posts from September, 2017

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','
Image
Winter 18 – Automatic Styling of Visualforce Pages in Lightning Experience Visualforce has enabled the very rapid development of custom-coded functionality that blends in seamlessly with native functionality in Salesforce Classic. Particularly, standard Visualforce components encapsulate the styling and functionality of many different standard Salesforce user interface elements. With Winter 18, we have LightningStylesheet attribute available for apex:page tag automatically style existing Visualforce pages with Lightning Experience stylesheets . It is still in beta so it will be available soon. Happy Sharing... Everyone has their own favourites, so please feel free to share yours in the comments below!