-
How to show Toast message in Preview of Lightning Application in Salesforce?
I am using:
showToast : function(component, event) { var toastEvent = $A.get("e.force:showToast"); toastEvent.setParams({ message:'This account does not have any contacts.', }); toastEvent.fire(); }
but this gives me an error. How can I use this in preview?
Log In to reply.
Popular Salesforce Blogs

Essential Tips and Tricks for Successful CRM Data Migration | Salesforce
A real headache could be the data migration process essential to your new CRM solution’s success. To reduce hassle or issues, it is critical to…

Your Journey to Salesforce to Becoming a Salesforce Developer
As an informational guide for Salesforce beginners and anyone who would like to start a career in it, this article assembles the basic knowledge about…

Salesforce Winter '23 Marketing Updates
Let's take a look at the marketing updates that have been introduced in the Salesforce Winter '23 release. Marketing Cloud Account Engagement (Pardot) Automate Tasks…
Popular Salesforce Videos
Salesforce Object Search Language: What is SOSL and when to use SOSL?
When to Use SOSL? Use SOSL when you don’t know which object or field the data resides in, and you want to: Retrieve data for…
Salesforce Mobile App Demo
The Salesforce mobile app is an enterprise-class app that provides your users with instant access to your company's CRM data from a phone or tablet.…
In App Guidance | Salesforce Tutotial
In this video, we take a look at one of the new features from the Salesforce Summer '19 release - In-App Guidance. We explain what…
Popular Salesforce Infographics

How to Choose the Right Salesforce Partner | Infographic
Choosing the right partner is a key factor that can make or break the success of your project. Salesforce is a powerful CRM platform, which…

7 Must Know Features on the New Salesforce AppExchange
The AppExchange is an online marketplace for Salesforce apps, components, and consulting services. If you're a Lightning Platform developer or consultant, the AppExchange is the…

How to Use Psychology to Target Your Buyer?
Ever wanted to get into the minds of your customers and figure out how they think? Ever wanted to know the best methods to convince…