Login to Lightning enabled Salesforce instance using SessionId

If you have session Id, then you could login to Salesforce directly using below URL hack :

https://[intance].salesforce.com/secur/frontdoor.jsp?sid=[sessionId]

on above URL, you have to replace [instance] by actual salesforce instance name and [sessionId] by actual sessionId of user.

In same way, we can directly login to portals or communities using below URL hack

https://[instance].salesforce.com/secur/frontdoor.jsp?sid=[sessionid]&orgId=[orgId]&portalId=[portalOrCommunityId]

I tried to see, how can we login to Salesforce after Lightning design is enabled in Salesforce and found that below URL hack actually works, assuming we want to open Opportunity record after successful login. If you don’t want to redirect on any existing lightning page or record then you can simply ignore URL part after [SessionId]

https://[instance].salesforce.com/one/one.app?sid=[SessionId]#/sObject/006B0000002p2FrIAI/view

Note : You have to be very careful while using SessionId, If its publicly available then anyone can have access to your Salesforce Org.

Salesforce Lightning Component – Radar Chart

Author posted by Jitendra on Posted on under category Categories Salesforce and tagged as Tags with 2 Comments on Salesforce Lightning Component – Radar Chart

How to create Radar chart using Lightning Component in Salesforce with the help of Chart.js library

To create Radar chart in lightning component, we will be using chart.js library. If you are new to lightning then please go through basics and also I would suggest to go through lightning trailhead modules.

Lightning Component for Radar Chart
Lightning Component for Radar Chart

Continue reading “Salesforce Lightning Component – Radar Chart”

Barcode scanner component in Salesforce lightning – Video

Recording of Live code – Creating Barcode decoder component using Javascripyt library in Salesforce Lightning

This post is rewritten of previous post for decoding Barcode using JavaScript in Salesforce1 mobile application. Assuming you already have static resource of javascript library  QuaggaJS (we need only js file from dist folder).

This code was written live on my streaming channel on 10-Jul-2015, You can find recording here.

Barcode Scanner Lightning App
Barcode Scanner Lightning App

I have not added capability for image preview like I did in previous did, but it can be easily done by referring this blog post from Peter Knolle.

Continue reading “Barcode scanner component in Salesforce lightning – Video”

Compilation of resources to learn Lightning Components in Salesforce

An attempt to gather all resources to learn Salesforce lightning component in one blog post

  1. Lightning Component developers guide
  2. Salesforce Lightning Design System (SLDS)
  3. Salesforce style Bootstrap CSS
  4. Lightning Components tutorial on trailhead
  5. Creating Lightning Components : Single Page Applications by Don Robins
  6. Basics of Lightning components by Jitendra
  7. Building lightning components in Spring 15 by Jeff Doughlas
  8. Pure Javascript based Collapsable panel component by Jitendra
  9. Search bar and contact list component in Lightning by Salesforce
  10. Working with controllers by Peter Knolle
  11. Handling custom events in Lightning Component by Peter Knolle
  12. Debugging Lightning Components by Peter Knolle
  13. Extending Lightning Components by Peter Knolle Continue reading “Compilation of resources to learn Lightning Components in Salesforce”

Salesforce Lightning Component – expand and collapsable panel example

How to use aura:facet component and Learn creating expand and collapsable reusable lightning component in Salesforce

In previous blog post, we saw that how Lightning component bundles are related to each other and how to create simple Hello World component.

In this post, we will create very simple yet powerful reusable lightning component for collapse and expand panel. This time, we will skip basics of lightning and directly start with code.

Complete component is build with plain javascript and CSS, no library used.

Lightning CollapsiblePanel Component - Collapsed
Lightning CollapsiblePanel Component – Collapsed
Lightning CollapsiblePanel Component - Expanded
Lightning CollapsiblePanel Component – Expanded

 

Continue reading “Salesforce Lightning Component – expand and collapsable panel example”

Getting started with basics of Lightning Component

As you might already know that next big change in Salesforce is introduction to lightning components. As technology is changing rapidly and to take advantage of cutting edge innovations in web technology, Salesforce doesn’t want to stay behind. If we see trend, all major platform has introduced component based design like Polymer, React, Web Components, Angular 2.

We will be discussing basics of Lightning components in this post and how Lightning application, component, controller, helpers and Apex controllers are connected with each other.

Lightning components are based on open source UI framework for web development. Every Salesforce organization already has aura documents available in their instance and can be opened by navigating to http://instance.salesforce.com/auradocs. You can also visit my other blog post explaining FAQ of lightning and Lightning Trailhead module.

In below image, I have tried to explain at high level, how different JavaScript files are related in Lightning components, there are many other parts as well, but I tried to keep it short and simple.

Getting started with lightning components
Getting started with lightning components

Continue reading “Getting started with basics of Lightning Component”

Learning Lightning Component – Trailhead way

Learn Lightning Component Trailhead way
Learn Lightning Component – Trailhead way

In Previous article, I have introduced what is Trailhead and why employer should start using it to train Salesforce developers and Admins. At the time of writing this article, there are already 16 modules to be learned from it.

Recently Salesforce has added some more awesome tutorial and  In this article, I will walk-through “Lightning Component” module of Trailhead.

1. Getting started with Lightning Component (+100 points)

In this module, you will learn that what exactly is lightning component, Aura Framework and how it is different than visualforce?

This is UI framework to develope dynamic web pages for mobile and desktop devices in Salesforce. Its used mostly for SPA (Single Page Applications). It focuses on component based developement and reusing it. You can compare Lihtning component (by Salesforce) with React (by Facebook) and Polymer (by Google).

Continue reading “Learning Lightning Component – Trailhead way”

Salesforce interview question related to Lightning framework – Part 20

Salesforce interview questions for Salesforce developers and admin , mostly related to newly released Salesforce Lightning components and applications

191. Why do we still need Visualforce once Lightning will be GA ?
Ans : Visualforce provides the facility for delivering template-driven web pages and email messages. In addition, developers wishing to simply utilize a basic container and maintain more control over the lifecycle of the request may choose Visualforce pages. Finally, organizations that can’t use Apex code can’t use Lightning Components, but they can use Visualforce.


192. What is difference between Visualforce Components and Lightning Components ?
Ans : Visualforce provides the facility for delivering template-driven web pages and email messages. In addition, developers wishing to simply utilize a basic container and maintain more control over the lifecycle of the request may choose Visualforce pages. Finally, organizations that can’t use Apex code can’t use Lightning Components, but they can use Visualforce.


193. Currently, can you show Lightning components tab in Mobile as well in desktop ?
Ans : Currently you can only use Lightning Components in the Salesforce1 Mobile App or a standalone app. Continue reading “Salesforce interview question related to Lightning framework – Part 20”