Salesforce Integration

Calling Salesforce REST API web services using Java and OAuth 2.0

Salesforce allows you to write Apex class methods and expose them as a REST or SOAP web service operations. By making your methods callable through the web, any external applications can integrate with Salesforce to perform the operations. Let’s say you built a custom application on Force.com platform or want to use an existing one (whose… Continue reading Calling Salesforce REST API web services using Java and OAuth 2.0

Salesforce Integration

Salesforce Apex Callouts using REST

Salesforce provides an easy way of making an external Web services call from your Apex and the mechanism is called Apex Callouts. Apex provides integration with Web services that either utilize SOAP and WSDL or HTTP (RESTful) services. In this article I will be using the REST option to invoke a web service. As a refresher, REST (Representational state transfer)… Continue reading Salesforce Apex Callouts using REST

Salesforce Integration

Salesforce Callouts troubleshooting using RequestBin

Debug Logs are a powerful tool provided by Salesforce to look at the logs and analyze the error’s (if any) being thrown. It is also used to trace the state of the application flow or view the state of variables, objects at any point of time. It can almost record any database operations, system processes,… Continue reading Salesforce Callouts troubleshooting using RequestBin

Apex/VisualForce

learning ‘apex:actionSupport’

<apex:actionSupport> is a standard VisualForce component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by the server when a particular event occurs, such as a button click or mouseover. For example, the commandButton component has the inbuilt AJAX support but others such as outputText component does not have – so… Continue reading learning ‘apex:actionSupport’

Apex/VisualForce

learning ‘apex:actionFunction’

<apex:actionFunction> is a standard VisualForce component which allows you to invoke Apex controller action methods directly from a JavaScript code using AJAX request. An <apex:actionFunction> component must be a child of an <apex:form> component. It is different from <apex:actionSupport>, which only provides support for invoking controller action methods from other VisualForce components, <apex:actionFunction> defines a new JavaScript… Continue reading learning ‘apex:actionFunction’