-
How to override the redirect on saving force:createRecord in Salesforce Lightning?
I need to override the redirect on save of a force:createRecord lightning component.
var eve = $A.get("e.force:createRecord");
eve.setParams({
"entityApiName": "Opportunity",
"defaultFieldValues": {
"AccountId" : accountId
},
"panelOnDestroyCallback": function(event) {
console.log('test');
//console.log(event.getParam("id"));
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "<some visualforce page url>",
"isredirect": "true"
});
urlEvent.fire();
}
});
eve.fire();
Log In to reply.
Popular Salesforce Blogs
Salesforce Consulting Services and its Benefits: All You Need to Know
If you are in the market to take business operations to the next level, you might have come across the term Salesforce Consulting Services. Salesforce…
The Ultimate Guide to Setting Up a Salesforce Multi-language Platform for a Global Audience
Many businesses have thrived in the globalized market, especially small-medium enterprises. According to OECD, 95% of companies are SMEs, accounting for 60-70% of employment in…
Transforming Higher Education: How Salesforce for Universities Enhances Student Engagement and Experience
What if there was a way for universities to connect with students on a deeper, more personalized level—improving engagement and streamlining the overall experience? Well,…
Popular Salesforce Videos
Salesforce Data Loader Tutorial
The Salesforce Data Loader is an easy to use graphical tool that helps you to get your data into Salesforce objects. The Data Loader can…
Exploring Salesforce composite Resources | Composite API
Exploring Salesforce composite Resources-- 0:00 Introduction 1:30 What is Composite Resources? 2:00 Composite Resources consists of 2:25 Composite request body 5:30 Composite request response 6:33…
How to Find Job as a Fresher in Salesforce - Tips and Tricks
In this video Rohit Puri gives a detailed explanation of the questions that everyone has regarding Salesforce jobs, how to find jobs in Salesforce on…