-
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
Salesforce Lightning Design System for Developers | The Ultimate Guide
SLDS In Lightning The Salesforce Lightning Design System (SLDS) causes you to fabricate applications with the look and feel of Lightning Experience without composing a…
Salesforce Leads vs. Contacts: Everything You Need to Know
Understanding the difference between Leads and Contacts is imperative for marketing strategies and effective sales. These two objectives influence tracking prospects, managing relationships, and closing…
A Small Guide On Salesforce Integration: Benefits | Types | Perks
As businesses expand their operations, they often need help to keep up with the increasing workload. From managing customer information to tracking sales leads, the…
Popular Salesforce Videos
Lightning Component In Salesforce
In this video, we are going to look into: Lightning Component Lightning Component features Types of Lightning Component Lightning Component bundle Watch this video and…
What is Apex? | Way to become a Salesforce Developer | Salesforce Development Tutorials
This video will provide you a complete path to become a Salesforce Developer. It includes very important and beneficial topics like Apex, Visualforce, Lightning. …
Explain Data Management in Salesforce?
Data loader is a tool to process bulk records and we can process a maximum of five million records with the data loader. Watch this…
Popular Salesforce Infographics
The Working Of Salesforce CRM
Salesforce CRM is considered as the #1 CRM in the market. It has the ability to manage customer interactions of an organization through several methods.…
In marketing, Can We Achieve What We Can’t Measure? | Salesforce
Metrics in marketing are always evolving and we can all learn more about them from our peers. Let’s look at where marketers are spending their…
A Better Way To Manage Your Salesforce | An Infographic
New software allows sales executives to see exactly where and how sales reps spend their time. These improved analytics give management a solid basis for…