Skip to main content


Showing posts from 2016

Migrating to Lightning component from Visualforce

In this post, I'm sharing my tips to my fellow salesforce developers to get the transition from visualforce to lightning component development. When learning lightning component always tries to relate the functionality with visualforce this will help you understand better. 1. Learn JavaScript Most of the salesforce developers, when working with the visualforce pages they may not get an opportunity to utilize the JavaScript/jQuery completely because visualforce component has native javascript functionalities like button click events, action function, dynamic refresh component etc. If you are not familiar with JavaScript then that is your first step to learning lightning. Check this site to learn about JavaScript 2. Business logic We always use visualforce page as front-end to view the information and keep all our business logic in the apex controller class but in the lightning component development, the approach is entirely different. We write al

Location Based Activities - Lightning

The new summer’16 feature automatic geocode for the address helps to track your nearby prospects and clients but you can also able to create location-based activities for the account, lead or contact records. Let’s see how to create location-based activity records. In this, below example, I will use the account record geolocation to track my activity records.  As a first step, set up the geocode clean rules -   Once you setup the rule then, geocodes are automatically added to existing accounts, contacts, and leads. New accounts, contacts, and leads get this information when they’re saved.  Next, I have created custom checkbox field in activity object called ‘Remind me at a Location’. Enable the checkbox field when creating the activity record. This is to identify which task I want to see based on the current geo-location so this activity record will use th

Salesforce and littleBits Integration - Part 2

In my previous salesforce and littleBits Integration post, I have explained about sending information from the littleBits device to Salesforce, when there is a button click (physical button click) on the device it will insert a new record in salesforce. In a simpler word, we sent information from littleBits to Salesforce. Now in the part-2, we are going to send information from salesforce to littleBits device. In this post, I'm going to explain how to turn on and Off the LED light connected to my littleBits device from salesforce Step 1: Setting up littleBits Device For this demo, you need one cloud bits, one USB power, one LED module and an external charger for power. Setup your littleBit device kits as shown in the below picture Now go to and copy the device id and access token which is required to send information from salesforce to littleBits. Step 2: Setting up Salesforce Here we are going to setup salesforce to send information t

Salesforce and LittleBits integration - IoT device

Integrating Salesforce with IoT devices (Internet of Things)  is one of my favourite topics and I was waiting for a long time to work on that topic and somehow I got time and managed to get one IoT device littleBits to experiment with it. The littleBits cloud starter kit consists of 5 modules cloud bits, sound trigger, long led, button,servo and USB power. The main heart of this kit is cloud bits which have onboard wifi adapter which will connect the device to the internet. When the kit is connected to the internet, we can able to collect and post information to the device using the littleBits cloud API . Let's get into the action 1. Setup littleBits device Once you purchased the littleBits cloud starter kit, you can able to connect the device by following the steps given in the link or you can download the littleBits mobile application to connect your device to the internet. Build the device module as shown in the below picture 2. Conne

Dynamic Lightning Table

Dynamic lightning table components help you to easily display records in the table format along with the pagination This component has three attributes 1. Object - Specify the API name of the object from where you need to retrieve the records 2. Fields - Specify the list of columns you wants to display in the table. You have to mention the API name of the object fields 3. pageSize - Specify the number of records you want to display in a page Let's look into the components involved here DataTable In my recent post about the custom lightning component for recent records, I have provided an example to display the records dynamically, the same component logic remains here, the only differences here is instead of the recent record object, we will retrieve the records from the actual object. Check the blog post here - Pagination Pagination logic is the one of the key features for

Trailhead - Navigate the Salesforce Advantage

I would like to share my personal experiences in this post before I talk about the topic I'm pretty sure everyone had this experience or will have when you are going to any family functions or meeting your old friends/relatives after a long gap. They gonna ask about where are you working? which technology? The same questions are asked to me when I was met my relative in the year 2011. I proudly told him that I'm working in salesforce technology, all of a sudden he said that "Oh..sales application? what product are you selling?" He imagined I'm in the sales/marketing department.  I can't explain to him about Apex, Visualforce, multitenancy etc., in any technical terms, I have to explain in layman's term to him about salesforce, somehow I managed to explain him about salesforce. Later I have spent lots of my time in watching many videos about salesforce, cloud computing and read many articles to understand the base of the technology first. I still remem