December 21, 2017

Salesforce Winter '18 Quick Summary

Enhanced Lead Convert in Lightning Experience

Chatter Answers Retires in Winter ’18

Start planning that retirement party for Chatter Answers! After years of faithful service helping users find answers to their pressing questions, Chatter Answers is calling it quits in Winter ’18. Salesforce will no longer support Chatter Answers, and users of Chatter Answers will no longer be able to post, answer, comment, or view any of the existing Chatter Answers data. Chatter Answers is passing the torch to Chatter Questions, an eager young thing ready to take up the self-service mantle.

Use Einstein Lead Scoring in Salesforce Classic

Add the Lead Insights component to your Salesforce Classic lead page layouts so that sales reps see their leads’ scores and the insights that support them. This change applies to Salesforce Classic only.

Set Up Person Accounts with Ease

Ready to start using person accounts? You picked a great time because we steamlined the
enablement process. This change applies to both Lightning Experience and Salesforce Classic.
An automated process checks whether or not your org meets the requirements for using Person
Accounts. The requirements are:

• At least one record type for accounts.
• Users that have read permission on accounts have read permission on contacts.
• Organization-wide default sharing is set so that Contact is Controlled by Parent or Account
and Contact is Private.

From Setup, enter Account Settings in the Quick Find box, and then select Allow Customer Support to enable Person Accounts. After we confirm that your org is ready for Person Accounts, we’ll send an email with additional information about logging a Support case.

Collaborative Forecasts: Do More with Sales Predictions

Configure Collaborative Forecasts in Lightning Experience. Forecasts users also get more information and can do more when they’re projecting sales. These changes apply to Lightning Experience only.

Enterprise Territory Management: Configure and Manage Sales Territories in Lightning Experience

Configure Enterprise Territory Management in Setup without switching to Salesforce Classic. And reps can now manage their sales territories in Lightning Experience. These changes apply to Lightning Experience only.

Opportunities: Opportunity Teams, Opportunity Products

Working with opportunities in Lightning Experience is more efficient than ever! Your users can now add an entire opportunity team in fewer clicks. And, increase the completeness of opportunities by prompting users to add products immediately when they create or clone an opportunity. These changes apply to Lightning Experience only.

Sales Console: Welcome Forecasting to the Console

You’ve been patiently waiting for Collaborative Forecasts to come to the Lightning Sales Console. The wait is over! Plus, we’ve made other great improvements to Lightning console apps, including the ability to add favorites, navigation rules to make your users’ workflow more efficient, and additional keyboard shortcuts.

Lightning Dialer: Voicemail Greeting and Company Number

Sales reps can now record custom voicemail greetings and display a standard company number when making outgoing calls. These changes apply to Lightning Experience only.

List Views: Customizations, Mass Inline Editing, and Text Wrapping

Reps can get more done with fewer clicks when working from list views. Edit multiple records from a list view, and wrap text in columns to see more at a glance.

Cloud Scheduler Is Retired

The Cloud Scheduler is no longer available. Reps can’t propose new meetings with the New Meeting Request button on events. Existing proposals indicate that the feature is no longer available and suggest that invitees contact the organizer. This change applies to Salesforce Classic only.

Merge Person Accounts in Lightning Experience

Sales reps can now view duplicates on person accounts in Lightning Experience just as they can on business accounts, contacts, and leads. Users with permission can merge person accounts, too. This change applies to Lightning Experience only.

Do More with the Ask Button

In the Community Builder, the Ask Button component has two new options: Show topics and Show details. They give you more control over the appearance of the Ask Question dialog and give your members the best experience. This change is available in Lightning communities.

Get External Files in Communities

Your external files are vital content resources, so naturally you want access to them from your community. Previously only available in Salesforce Tabs + Visualforce communities, you can now access external files in your Lightning communities using Files Connect. Access files from Quip, Google Drive, SharePoint, Box, and OneDrive for Business.

Create Custom File Preview Components

A new Lightning component, Files Preview, makes it easy for your users to preview and take quick action on files. The Files Preview component displays a preview of the file with file actions clearly labeled across the top. When a file can’t be previewed, the preview shows an icon of the file’s type.

Spice Up Your Conversations with Emojis

Emojis have arrived! Engage your audience by adding zest to your feed. When you post, comment, and add details to your questions, or when you answer questions, the emoji icon appears in the Chatter publisher. Emojis are available in Lightning Experience and Lightningcommunities.

Enable Topic Suggestions For Your Org

Topics suggestions are helpful when you want to encourage folks to add topics to their posts and questions. At the same time, having the flexibility of turning off topic suggestions is also key. We now give you the option to turn off topic suggestions for your org. The permission is enabled by default, so contact Salesforce Customer Support to disable topic suggestions.This change applies to both Lightning Experience and Salesforce Classic.

Create a Custom Report Type to See Your Top Ranked Groups

Find out which groups have the most activity in your org with a new custom report type. Create the custom report type using Groups as the Primary object, and monitor your groups’ rankings accordingly. This feature is new in both Lightning Experience and Salesforce Classic.

Create and Collaborate on Quip Documents in Salesforce

Quip lets you create, share, and collaborate on documents and spreadsheets in Salesforce. No need for an external file provider. In Lightning Experience, use the Quip component on records to create new Quip documents and work with existing ones. Work with Quip documents in Chatter, Files home, and Files related lists. Quip is available in Lightning Experience, Salesforce Classic, and communities.

Get Performance Information with the Salesforce Community Page Optimizer

The free Salesforce Community Page Optimizer analyzes your community and identifies issues that impact performance. Use the information to refine your design and improve community performance for your members.

View Related List Data Quickly with Related List Quick Links

Are your users tired of clicking View All to see all the columns in a related list? With the Related List Quick Links component, they can view multiple related lists in quick succession just by hovering over a link. And, they can complete actions right from within the hover pane.

The Related List Quick Links component is available for record pages only.

Let Users Hold Video Meetings and Send Instant Messages Right from a Record with the Cisco Spark for Salesforce Component

As part of the new Cisco Spark for Salesforce feature, the Cisco Spark for Salesforce component is now available in the Lightning App Builder. Add it to record pages to let your users initiate video meetings and send and receive instant messages right from the record they’re visiting.

Set More Variable Values in the Flow Component

You can now set values for your picklist and multi-select picklist variables directly from the properties pane. These changes apply to both Lightning Experience and Salesforce Classic.

Configure a Flow to Wait for a Platform Event to Occur

You can now subscribe to platform events in a flow Wait element. With platform events, a flow can wait for something to occur, inside or outside your Salesforce org. Previously, a flow could wait only for a relative or absolute date/time value. This feature is new in both Lightning Experience and Salesforce Classic.

Start a Process When a Platform Event Occurs

You already know the power of automating a business process based on record changes in your Salesforce org. But what if some of your business-critical events don’t happen inside your Salesforce database? No problem. Create a process that starts when a platform event occurs. This feature is new in both Lightning Experience and Salesforce Classic.

Quickly Reference Specific Users and Queues in Your Processes

Say hello to a more intuitive way of referencing users in your processes. Instead of manually entering a user ID, simply search for that user by name. You can also search for queues. This change applies to both Lightning Experience and Salesforce Classic. The ID and Reference value types didn’t go anywhere. You can still enter the user or queue ID manually or reference a field.

Access Encrypted Data in Process Builder 

Process Builder now supports encrypted fields, except in filters in the Update Records action. This feature is new in both Lightning Experience and Salesforce Classic.

Turn On Multiple Currencies Without Contacting Support

It’s now possible to enable multiple currencies instantaneously without contacting Salesforce Customer Support, or locking your org. These changes apply to Lightning Experience, Salesforce Classic, and all versions of the Salesforce1 mobile app.

Salesforce Connect: Batch Apex, External Object Validator, and Continued

Use batch Apex to process large sets of external object data. Use the Salesforce Connect Validator to quickly test common user and code interactions with external objects. Let us know what you think about the continued pilot for tracking external object data callouts with event log files.

Manage Inactive Picklist Values Easier with Pagination

Track your inactive picklist values better with pagination, even if you have thousands of them. And pagination also helps the pages displaying the values load faster. This feature is new in both Lightning Experience and Salesforce Classic.

Actions Included on a Page Layout Are No Longer Deletable

Deleting an action that is included on a page layout can break the publisher, the other actions on the page, or the entire page. To avoid mistakes, you can no longer delete actions that are used on a page layout. This change applies to both Lightning Experience and Salesforce Classic.

Deploy Named Credential Callout Options via Change Sets, Packages, or Metadata API

When defining a named credential, you can specify whether to customize headers and bodies of Apex callouts that use the named credential. Previously, those callout options were set only via the user interface. Now they can be deployed via change sets, packages, or Metadata API, so you don’t need to manually configure the callout options after deployment. This change applies to both Lightning Experience and Salesforce Classic.

Check Your Encryption Coverage with Encryption Statistics (Beta)

The Encryption Statistics feature shows Shield Platform Encryption customers how much of their data is encrypted with an active tenant secret. Get key statistics for maintaining compliance, stay on top of your key rotation obligations, and streamline the mass encryption process. To enable this feature, contact Salesforce Support. This feature is available in Lightning Experience, Salesforce Classic, and all versions of the Salesforce1 mobile app.

Encrypt Opportunity Description and Next Step Fields (Beta)

You can encrypt the Opportunity Description and Next Step fields in sandbox and production environments. Contact Salesforce to activate this feature. This feature is available in Lightning Experience, Salesforce Classic, and all versions of the Salesforce1 mobile app.

Get Your Pages Ready for Lightning Experience

Want to know if the Visualforce pages in your org are ready for Lightning Experience? Use the Lightning Experience Visualforce check to generate a report that flags pages that need changes before they’re ready for prime time in Lightning Experience. This change applies to Lightning Experience only. Run the Lightning Experience Visualforce Report directly from your Lightning Readiness Report PDF. The Visualforce Report looks at all pages in your org used in the past 90 days, and identifies features that aren’t available in Lightning Experience.

Deployments Now Recompile of All Apex Code

All of an org’s Apex code is now recompiled automatically before completing a metadata deploy, change set, a package install, or a package upgrade (including push upgrades).

Customize Console Apps with the Lightning Console JavaScript API 

The Lightning Console JavaScript API includes new and updated methods that let you customize a Lightning console app and utility bar programmatically. These changes apply to Lightning Experience only.

Enhanced Lead Convert in Lightning Experience

1. Open a Lead.

2. Click "Select Converted Status" under Converted.

The new lead conversion process matches leads with contacts and accounts already in Salesforce. At the same time, reps create an opportunity or select one already in the works. This change applies to Lightning Experience only.

You can select record type also when Create New is selected.

December 13, 2017

Heroku Enterprise

Heroku Enterprise is part of the Salesforce Platform, a multi-cloud app platform. That's quite a mouthful! We just mean that the Salesforce Platform ties together many tools and services into a cohesive platform that you can use to build amazing applications.

Heroku Enterprise is part of that toolset. It can enable you to build custom applications to facilitate amazing customer experiences. You might know that allows you to build employee-facing apps to customize and extend your Salesforce CRM.

With Heroku Enterprise you can go even further, building pixel-perfect applications for your customers in open-source languages like Java, Ruby, Python, PHP, JavaScript, and Go. You can go beyond the bounds of but stay connected to your data inside Salesforce. It's basically the best of both worlds! Many customers are leveraging Heroku Enterprise for powerful web and mobile applications that drive increased customer engagement.

Why Heroku? 
A PaaS abstracts away the complexity of building and running infrastructure for applications. Using a PaaS allows you to easily create load-balanced collections of containers that run your software. You can think of those containers just like shipping containers that hold all the code and resources needed to run your application.

Trailhead -

December 12, 2017

How to query all object names in Salesforce?

Sample SOQL:

SELECT QualifiedApiName FROM EntityDefinition ORDER BY QualifiedApiName


December 6, 2017

File Upload and Download Security in Salesforce

1. Go to File Upload and Download Security.

Lightning Experience:


2. Click Edit button. Do the changes and click Save button.

Specify what happens when users attempt to download specific file types.

Download (Recommended): The file is always downloaded.
Execute in Browser: The file is displayed and executed automatically when accessed in a browser or through an HTTP request. Due to security risks, some file types aren't available to execute in the browser.
Hybrid: Attachment and document records execute in the browser. Salesforce Files are downloaded.

December 5, 2017

December 1, 2017

Salesforce Trailhead Vanity URLs

1. Go to Profile.

2. Click Edit in About Me Section.

3. Enter your name or fancy title for your profile link.

November 15, 2017

How to deploy platform events using Apache ANT tool in Salesforce?

Sample package.xml:


November 7, 2017

force:createRecord example in Salesforce Lightning

Sample Code:


<aura:component implements="flexipage:availableForAllPageTypes">
    <lightning:button label="Create Account" variant="brand" onclick="{!c.createAccount}"/>


createAccount: function (component) {
        var createRecordEvent = $A.get('e.force:createRecord');
        if ( createRecordEvent ) {
                'entityApiName': 'Account',
                'defaultFieldValues': {
                    'Type' : 'Prospect',
                    'Industry' : 'Apparel',
                    'Rating' : 'Hot'
        } else {
            /* Create Record Event is not supported */
            alert("Account creation not supported");

Add the lightning component to any page. I have added it to the Account detail page.


November 6, 2017

How to query all non portal user roles in Salesforce?


SELECT Id, Name FROM UserRole WHERE PortalType = 'None'


lightning:layout in Salesforce

Represents a responsive grid system for arranging containers on a page. A lightning:layout is a flexible grid system for arranging containers within a page or inside another container. The default layout is mobile-first and can be easily configured to work on different devices.

Sample Code:

<aura:component implements="flexipage:availableForAllPageTypes" >
    <div class="c-container">
        <lightning:layout horizontalAlign="center">
            <lightning:layoutItem flexibility="auto" padding="around-small">
                <ui:inputSelect multiple="false">
                    <ui:inputSelectOption label="All Types" text="" value="true"/>
            <lightning:layoutItem flexibility="auto" padding="around-small">
                <button class="slds-button slds-button_brand">Search</button>
            <lightning:layoutItem flexibility="auto" padding="around-small">
    <ui:button label="New"/>



How to set default value in picklist in Lightning Component in Salesforce?

Lightning Component:

<aura:component access="global">
    <ui:inputSelect aura:Id="makeId" multiple="false" label="Select Make">
        <ui:inputSelectOption label="Acura" text="acura" value="true"/>
        <ui:inputSelectOption label="Audi" text="Audi"/>
        <ui:inputSelectOption label="BMW" text="bmw"/>
        <ui:inputSelectOption label="Honda" text="honda"/>
        <ui:inputSelectOption label="Hyundai" text="hyundai"/>
        <ui:inputSelectOption label="Mercedes Benz" text="merc"/>
        <ui:inputSelectOption label="Nissan" text="nissan"/>
    <ui:button label="Find Vehicles" press="{!c.findVehicles}"/>

here value="true" is used to set the default value.

Lightning Component Controller:

findVehicles : function(component, event, helper) {


When Find Vehicles button is clicked, selected value will be alerted on the screen.

October 28, 2017

How to set Email Signature in Salesforce?

1. Go to My Settings.

2. Set the Email Signature in My Email Settings.

October 24, 2017

How to find who last modified the report in Salesforce?

1. Create a report with Reports report type.

2. Check Last Modified By and Last Modified to find who last modified the report and when.

October 20, 2017

Salesforce Support for Non System Administrators or Regular Users

1. Go to Login Access Policies.

2. Enable Available to Users.

October 19, 2017

Files Component in Community Builder in Salesforce

In Community Builder, drag the new Files List component onto a page. This gives your community members a one-stop view of all their files while letting them do useful things like uploading and previewing.

Use the Property Editor to customize the Files List display. Choose the number of records to display on the page at once. Try out different settings to get the look you want.

Files Component View in Salesforce Community:

October 11, 2017

When manual sharing will be removed in Salesforce?

1. It is possible to manually share a record to a user or a group using Apex or the SOAP API. If the owner of the record changes, the sharing is automatically deleted. Salesforce currently removes all manual sharing from a record when the owner changes. If you are manipulating sharing via apex code or simply sharing to portal users, you might want the sharing to remain when the record owner is changed.

2. Changing your sharing model deletes any manual shares your users have created.

Vote for the below idea

Simple Outbound SOAP API using Apex in Salesforce

1. Go to the below link.

2. Right click and save the XML.

3. Go to Apex Classes.

4. Click Generate From WSDL button.

5. Select the downloaded file from step 2.

6. Click Parse WSDL and Done.

7. Remove Test from the endpoint in the class which was generated.

Apex class - ecEuropaEuTaxudViesServicesCheckva

Sample Code:

Visualforce page:

<apex:page controller="TestingVAT">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockSection >
                <apex:PageBlockSectionItem >
                    Enter Country Code<apex:inputText value="{!strCountryCode}"  />
                <apex:pageBlockSectionItem >
                    Enter VAT Number<apex:inputText value="{!strVATNum}"/>
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton value="Check VAT" action="{!checkVAT}" reRender="infoblock"/>
    <apex:outputPanel id="infoblock">
        <apex:pageBlock rendered="{!NOT(ISBLANK(vatNumber))}" >
            <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    Country Code
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                    VAT Number
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                    Request Date
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >
                <apex:pageBlockSectionItem >

Apex Class:

ppublic class TestingVAT {

    public String strCountryCode {get;set;}
    public String strVATNum {get;set;}
    public String countryCode {get;set;}
    public String vatNumber {get;set;}
    public Date requestDate {get;set;}
    public Boolean valid {get;set;}
    public String name {get;set;}
    public String address {get;set;}

    public TestingVAT() {
        strCountryCode = 'RO';
        strVATNum = '9311280';
    public void checkVAT() {
        ecEuropaEuTaxudViesServicesCheckva.checkVatResponse_element res = new ecEuropaEuTaxudViesServicesCheckva.checkVatResponse_element();
        ecEuropaEuTaxudViesServicesCheckva.checkVatPort obj = new ecEuropaEuTaxudViesServicesCheckva.checkVatPort();
        res = obj.checkVat(strCountryCode, strVATNum);
        countryCode = res.countryCode;
        vatNumber = res.vatNumber;
        requestDate = res.requestDate;
        valid = res.valid;
        name =;
        address = res.address;


October 10, 2017

{! } and {# } delimiters in Salesforce Lightning

Anything inside the {! } or {# } delimiters is evaluated and replaced when the component is rendered or when it uses the value. Unbound attributes are designated by {# } and do not update if the underlying object or attribute has changed.

Unbound Attribute Example:

Child Component

    <aura:attribute name="childAttr" type="String" />
    <p>childAttr: {!v.childAttr}</p>

Parent Component

    <aura:attribute name="parentAttr" type="String" default="parent attribute"/>

    <!-- Instantiate the child component -->
    <c:childComponent childAttr="{#v.parentAttr}" />
    <p>parentAttr: {!v.parentAttr}</p>
    <p><lightning:button label="Update parentAttr" onclick="{!c.updateParentAttr}"/></p>

    updateParentAttr: function(cmp) {
        cmp.set("v.parentAttr", "updated parent attribute");


<aura:application >
    <c:parentComponent />


Before clicking Update parentAtt:

After clicking Update parentAtt:

Bound Attribute Example:

Child Component

    <aura:attribute name="childAttr" type="String" />
    <p>childAttr: {!v.childAttr}</p>

Parent Component

    <aura:attribute name="parentAttr" type="String" default="parent attribute"/>

    <!-- Instantiate the child component -->
    <c:childComponent childAttr="{!v.parentAttr}" />
    <p>parentAttr: {!v.parentAttr}</p>
    <p><lightning:button label="Update parentAttr" onclick="{!c.updateParentAttr}"/></p>

    updateParentAttr: function(cmp) {
        cmp.set("v.parentAttr", "updated parent attribute");


<aura:application >
    <c:parentComponent />


Before clicking Update parentAtt:

After clicking Update parentAtt:

Check the below link for more information

How to use JAVASCRIPT file stored in Static Resources in custom Lightning component?

Sample Code:

<aura:component implements="flexipage:availableForAllPageTypes" access="global"> 
<ltng:require scripts="{!$Resource.myJavaScriptLib}"/> 
<div class="main-content"> 
<aura:outputText value="Hello World!">


October 9, 2017

JavaScript in Strict Mode

JavaScript code that runs in a browser can access a user's private information. To protect this information, LockerService requires you to use ECMAScript (ES5) strict mode, and enforces it in your code. This mode makes it easier to write secure JavaScript. A few code tweaks to comply with ES5 can substantially reduce the need for checking data at runtime.

Here’s a simple example of how strict mode prevents JavaScript from traversing the call-stack and modifying other functions. Without strict mode, the following function would have returned the name of the function that called primaryFunction().

JavaScript code:
function primaryFunction() {
  'use strict'
  console.log("The function calling the current method is: “+;
function callerFunction() {
  return primaryFunction(); 

Uncaught TypeError: 'caller' and 'arguments' are restricted function properties and cannot be accessed in this context.
at primaryFunction (<anonymous>:3:72) at callerFunction (<anonymous>:6:10) at <anonymous>:8:1

Strict mode restricts access to several other entities. When it is enforced, you can no longer reference the window object through the JavaScript variable this, for example. These restrictions eliminate a lot of potential security vulnerabilities.

October 7, 2017

Salesforce Lightning Inspector Chrome Extension

The Salesforce Lightning Inspector is a Google Chrome DevTools extension that enables you to navigate the component tree, inspect component attributes, and profile component performance. The extension also helps you to understand the sequence of event firing and handling.

1. Go to

2. Install it by clicking "Add to Chrome".

3. Right-click Lightning Component and select Inspect.

4. Click Lightning Tab.

October 4, 2017

Lightning Login for Password-Free Logins in Salesforce

Say goodbye to the hassle of weak passwords, forgotten passwords, and locked-out accounts. Give your users the enhanced speed, convenience, and security of password-free logins. Enable Lightning Login, assign the required permission to your users, and encourage them to individually enroll in Lightning Login.

Lightning Login isn’t limited to orgs using Lightning Experience. It works in Salesforce Classic, too.

1. Go to Session Settings.

2. Enable Allow Lightning Login.

3. Enroll Lightning Login.

4. Click Register.

5. Enter the code received.

6. Download Salesforce Authenticator app.

7. Click + New account to add an account.

8. Enter the two words shown in the App.

9. Click Connect and Approve.

10. You will see success message.

11. Go to or your domain.

12. You will see Login Approval Required.

13. Go to Salesforce Authenticator Mobile app to approve the login.

Check the below link for more information

Salesforce Service Cloud

Key Features of Salesforce Service Cloud

1. Case Management -

2. Knowledge -

3. Live Agent Web Chat -

4. Entitlement Management -

5. Chatter for Agent & Team Collaboration

6. Email to Case -

7. Web to Case -

8. Case Management (Auto-assignment, rules & queues)

9. Customizable Service Console -

10. Self-Service Portal -

11. Snap In Chat -

12. Case Escalation -

13. Omni-Channel -

14. Macros -

How to change the color in apex:toolBar?

Sample Code:

<apex:page sidebar="false">
    <apex:form >
        <apex:toolbar style="background-color:red;background-image:none;">
            <apex:inputText /> 
            <apex:commandButton value="Search"/>



October 3, 2017

How to change the color in apex:panelBar?

Sample Code:

<apex:page sidebar="false">
    <apex:panelBar style="background-color:pink;" headerStyle="background-color:gray;background-image:none;">
        <apex:panelBarItem label="Test 1">
            Test 1
        <apex:panelBarItem label="Test 2">
            Test 2
        <apex:panelBarItem label="Test 3">
            Test 3



Grant Access Using Hierarchies in Public Group in Salesforce

When selected, any records shared with users in this group are also shared with users higher in the role hierarchy.

Grant Access Using Hierarchies for public group Determine whether users have access to records they don’t own, including records to which they don’t have sharing access, but someone below them in the hierarchy does.

If an user is added to the public group. All the users above his role hierarcy will all also be added to the public group with Reason For Membership as "Manager of Group Member".

October 2, 2017

Debugging and Troubleshooting Lightning components Salesforce

JavaScript Is Case-Sensitive. If the API name of your object is Expense__c and a field is Amount__c, and you try to reference it with expense__c.amount__c (which works in Visualforce), it’s going to fail in JavaScript.

JSON.stringify() gives you a human-readable representation of even complex structured data. The console.log() command outputs a string in your browser’s JavaScript console.

JavaScript Controller in Lightning

1. This isn’t a class. It’s a JSON object containing a map of name:value pairs. It can contain only action handlers, which you’ll never invoke directly.

2. Your action handlers are declared as anonymous functions assigned to the action name (here, myAction and anotherAction). Your functions can accept up to three parameters, and only these parameters (component, event, and helper though you can name them differently). The framework supplies them when it calls the handler.

3. Most importantly, you separate your name:value pairs with a comma.

Handling Server-Side Errors

If your Apex code encounters an error, you can create and throw an AuraHandledException. Catching other exceptions, such as a DML exception, and rethrowing them as an AuraHandledException also results in much better experience on the client side.

September 28, 2017

How to stop getting emails from Comments on an item I bookmarked in Salesforce?

1. Go to My Settings.

2. Go to Email Notifications in Chatter.

3. Disable Comments on an item I bookmarked check box.

September 25, 2017

How to find whether my Salesforce org is Lightning Ready?

1. Click "Get Started" in Lightning Experience Migration Assistant.

2. Click "Check Readiness" button.

3. You will be receiving an email with the readiness report. The report will contain almost all the information to be executed before migrating to Lightning.

Check the below link for more information

September 22, 2017

How to convert sObject to JSON String and JSON string to sObject using apex in Salesforce?

Sample Code:

Contact con = new Contact(FirstName = 'First', LastName = 'Last', Phone = '9999999999', Email = '');
/* Code to convert Contact to JSON string */
String strJSON = JSON.serialize(con);
system.debug('JSON String is ' + strJSON);
/* Code to convert JSON string to Contact */
Contact con1 = (Contact)JSON.deserialize(strJSON, Contact.Class);
system.debug('Contact is ' + con1);