-
How to ShowToast duration parameter not working in Salesforce Lightning Web Component?
handleToast(){
if(this.showToast){
//console.log('calling case comments');
getCaseComment({caseId: this.recordId})
.then(result => {
if(result){
this.dispatchEvent(
showToast('Info','pester', 'Latest Case Comment', result, 75000)
);
}
})
.catch(error => {
console.log('Error occured in showing case comments'+error);
});
}
}/**
* showtoast event
* @param variant
* @param mode
* @param title
* @param message
* @returns {ShowToastEvent}
*/
const showToast = (variant = 'info', toastMode = 'dismissable', title, message, toastduration) => {
//console.log('dutaion receved >>'+toastduration);
const event = new ShowToastEvent({
title: title,
duration : toastduration,
message: message,
variant: variant,
mode : toastMode
});
return event;
}
Log In to reply.
Popular Salesforce Blogs
Salesforce Tips and Tricks for Data Integration
User experience is one of the most important aspects of any prominent business endeavor. However, to keep your consumers satisfied with your service or product…
What are Record-triggered Flows in Salesforce? | The Ultimate Guide
One of Salesforce's most potent features is Record-Triggered Flows (RTFs). You may automate procedures and lessen human labor by using RTFs to design flows that…
ChannelOnline To Salesforce Integration Setup [EPISODE -2]
Integration Setup In Salesforce Resellers must perform the following setup steps in Salesforce in order to exchange data Enable the correct employee for use with…
Popular Salesforce Videos
Why To Sell Your SAAS Application On Salesforce AppExchange ?
From unparalleled market reach to seamless integration and trusted security, explore the benefits that await SAAS entrepreneurs on Salesforce AppExchange. Watch our latest webinar to…
Salesforce Consulting - WHAT YOU NEED TO KNOW
If you're already working as a Salesforce Professional or you're interested in where your Salesforce Career will take you this is for you. This explains…
Gear up Marketing Automation with Salesforce Pardot
Salesforce trailblazer Admin group, Nasik with a session on Gear up Marketing Automation with Salesforce Pardot. Pardot is a marketing automation solution that helps companies…
Popular Salesforce Infographics
How to Create Campaign in Salesforce for Sales Departments: 5 Best Practices
Salesforce Sales Cloud is a powerful platform with several facilities for maintaining and improving the sales function. One of the dominant features offered by Salesforce…
See How Building Apps on Salesforce Has Tremendous ROI
The pressure that businesses today are under to reduce costs, improve agility, and deliver better results is no joke. Couple that with rapidly evolving technology…
Best Salesforce1 SMS Mobile App - 360 SMS App
360 SMS App is a One-stop texting solution platform for almost all kinds of industries including Healthcare, Hospitality, Education, etc. It can be your saviour…