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 … Continue reading Salesforce Cookies #3

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 <apex:slds /> in a Visualforce page to use Lightning … Continue reading Salesforce Cookies #2

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."/>

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. This component can be used to … Continue reading Lightning Component – Display records in a dynamic table using FieldSet on any object

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 … Continue reading Display Google Map in the formula field using geo-location fields

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 … Continue reading Platform Cache – Using it to store the access token if there is no refresh token mechanism provided

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 … Continue reading Salesforce Platform cache – A booster in the application performance and for the developers as well