Archives

How to test Salesforce Rest API using Rest Client

Salesforce provides Rest API which can be used to connect external services with Salesforce without human intervention. in this tutorial I will explain how to test Salesforce Rest API using Advance Rest API client. Create Connected app in salesforce from Setup->Create-> Apps   After successful completion of previous step you will get consumer key and …

Manage Users with Lightning Component

This tutorial comprise Lightning Design System and Lightning component to manage users from Salesforce1. Create Lightning component from Developer console by going Setup-> Developer console-> File -> New -> Lightning component and name it Manage_User Create new apex class in your code with following code.   Create Manage_UserHelper.js with following code which will communicate with apex …

Run Test Class in Salesforce from Apex

Salesforce support following way to execute a test class inside Salesforce The Salesforce user interface The Force.com IDE The Force.com Developer Console The API But apart from that we can run a test class in Salesforce from apex using ApexTestQueueItem (in beta release) which will submit your test class for test execution asynchronously.  

Use MavensMate for Apex Development

Eclipse is widely used apex development IDE from the decades but sometimes it makes our system slow and people start looking for alternative approach for development. I used eclipse couple of year but lately I find some slow down issue with my machine because eclipse consume memory. Sublime text is very light weight development tool …

Automatic Salesforce Testing with Cucumber

Cucumber is a software testing tool which can be used to test the functionality. It run automated acceptance test written in behavioral driven language. It was initially written in Ruby but now a days different language support Cucumber. Cucumber test framework require two different files .feature file Scenario file Feature file is combination of five …

Invoke Apex with Lightning Process Builder

Salesforce recently released Lightning Process builder for their customers. It is a UI workflow tool that helps admin to automate business processes in powerful manner. It is similar to Workflow but it also provides great flexibility with following action which is not available with Workflow It provides following action: Create a record Email Alert Call any …

Update record using javascript

Following code snippet will update record on button click on any standard detail page Create a new button from Object Name -> Button and links with following code. Add button to page layout.

Salesforce Deployment Methods

Once you are done with your development you need to migrate your code from your development organization to the organization where business user can use your code. So in this tutorial we will learn different types of organization and Salesforce Deployment Methods from one organization to another organization. 1. Organization Type Salesforce provides two types of …

How to verify Force.com Site for Google Webmaster Tools?

Issue : Sometimes it is an issue that we can’t verify the authenticity of Force.com Site because Google webmaster needs verification tag in head section and Salesforce doesn’t provide that by default. Solution: To verify a Force.com Site we need to remove existing html tag using applyHtmlTag=false and applyBodyTag=false. After that we need to define …

Introduction to Visualforce page

What is Visualforce Page: As we all know now that Salesforce provides two cloud services. Once is SAAS (Software As A Service) and PAAS (Platform As A Service). Platform as a service means you can create your own app inside Salesforce using their Platform services. Visualforce is a development framework that allow developers to build …