Author Archives: Naval Sharma

About Naval Sharma

I am certified Salesforce Developer with Sales and Service cloud certifications. I am a true believer in #GivingBack principle and a Salesforce enthusiast. I am working as a member of our #SalesforceOhana to learn and help other fellow Trailblazers of the community to grow and learn. "I'm a true believer in karma. You get what you give, whether it's bad or good."

Jquery Datepicker in Lightning Components for better control on behaviour of Datepicker

Having trouble with and components? Then why don’t you use Jqyery Datepicker? Jquery datepicker gives a lot of flexibility and freedom to developers to let them use a datepicker as per business needs. A developer can enforce validation on dates and date range which is very hard to impose using these out-of-the-box components as they rely on HTML5 input element. Following… Read more »

Salesforce Cookies #3

      No Comments on Salesforce Cookies #3

If there is a need of scheduling an apex job or schedulable apex class after each hour then cron expression is the best way. Cron expression allows you to schedule a job on a specific time. Following cron expression runs a job after each hour of the day. Cron expression is built with following parameters –  Seconds Minutes Hours Day_of_month… Read more »

Salesforce Cookies #2

      No Comments on Salesforce Cookies #2

Now using Lightning Design System in Lightning Application is easier – No static resource is required to include CSS files. An application automatically gets Lightning Design System styles and design tokens if it extends force:slds. Same behaviour can be accomplished in Visualforce pages with the help of apex:slds component. Include  in a Visualforce page to use Lightning Design System stylesheets in the… Read more »

Salesforce Cookies #1

      No Comments on Salesforce Cookies #1

Accessing record ID in the Lightning component is very simple. Just use following things. Implements force:hasRecordId interface in the component as follows. <aura:component implements=”flexipage:availableForRecordHome,force:hasRecordId” access=”global”> Define an aura:attribute as follows. <aura:attribute name=”recordId” type=”String” description=”The ID of the record to be displayed. Provided by force:hasRecordId interface.”/> Naval SharmaI am certified Salesforce Developer with Sales and Service cloud certifications. I am a true… Read more »

Lightning Component – Display records in a dynamic table using FieldSet on any object

Recently, while answering on developer forums. I came across a question where someone asked about a lightning component to display records in the table using a fieldset. I tried to put my effort to create a generic lightning component which can be used with any object and a fieldset. After the release of new components like Lightning:RecordEditForm, this has become… Read more »

Display Google Map in the formula field using geo-location fields

I came across a question on the answer community where someone is looking for a solution to display the google map on detail page using geolocation field. I thought it’s a good topic to write about so everyone will get benefitted. Use case – I have a geolocation field on the Account object for storing the client’s office location, now… Read more »

Platform Cache – Using it to store the access token if there is no refresh token mechanism provided

In my last post, I explained pretty much about the Platform cache and that was more theoretical. This post explains a use case where I used the Platform cache in my project. I had a challenge while working on a 3rd party application integration using OAuth 2 where I couldn’t refresh the access token as this mechanism has not been implemented by… Read more »

Salesforce Platform cache – A booster in the application performance and for the developers as well

If you ever been in Java and .Net development and have moved to salesforce then you must had been missing one feature which is Session Management. This is something which every Salesforce developer waited for so long. It’s quite close to what we have in other server programming languages but with some limitations due to the multitenant environment of Salesforce…. Read more »