-
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
Resolve Customer Service Teams Issues More Efficiently With Slack | Salesforce Guide
It is easy to see why so many contact centre managers are becoming more frustrated. Not only are they forced to reduce costs, but they're…
Learn Salesforce Einstein – Chapter 3 (Einstein Key Setup)
Do you have a key? If you have key then upload your key file here. If you don't have key then follow the below steps.…
How to retrieve the list of users based on Role Hierarchy in Salesforce?
How to retrieve the list of users based on Role Hierarchy in Salesforce: Sometimes, you need a multilevel hierarchy i.e. you need to view the…
Popular Salesforce Videos
How To Use Dynamic Prefill Link of Formstack | Learn Salesforce Series by Algoworks
Learn how to use ‘Dynamic Prefill Link’ of Formstack in 4 easy steps! 1. Introduction Short introduction of FormStack and its uses. 2. The need…
Data Import: Prepare your Data for Import | Salesforce
This short video walks you through how to clean up your import files in preparation for getting your data into Salesforce. We'll walk you through…
Popular Salesforce Infographics
4 Reasons To Offer An Exceptional Customer Service
When it comes to customer service, our friends at Salesforce have a few tips and tricks up their sleeve. We were thrilled to help them…
The Ultimate Marketing Automation Glossary
Sometimes, it sounds like marketers are speaking another language—especially when using terms associated with specific tools and platforms. It gets even more complicated when certain…
Do the Work: 8 Steps to Sales Call Preparation [CHECKLIST]
There is no shortage of sales tips and tricks to implement out there, we've certainly published our fair share, but at the end of the…