-
How to return reference to home page of object in Salesforce when clicked on a button?
I need to override cancel button in VF page in Salesforce. I tried using return null in
public pageReference cancelButton() {
return null;
}But it is not going anywhere after clicking on Cancel button.
I tried to use:
PageReference oppPage = new ApexPages.StandardController(opp).view();
oppPage .setRedirect(true);
return oppPage ;Still, it is not working.
Does anybody have an idea how to navigate to Opp Home page if we click on cancel button in VF Page?
Log In to reply.
Popular Salesforce Blogs
Introduction To Workbench In Salesforce
Workbench is a web tool used to interact with Salesforce organizations via API (Application programming interface). You can use Workbench to explore, inspect, edit, migrate…
Get Started With Triggers in Salesforce | The Complete Guide
Triggers are the automated actions that are performed whenever DML operations are performed on the object. Before Trigger: These triggers are fired before the new…
Salesforce ERP Integration, a Successful Combination
There are two types of systems whose implementation favors increased efficiency in the business processes of any company, these are: Customer Relationship Management (CRM) systems…
Popular Salesforce Videos
How to Integrate QuickBooks with Salesforce?
QuickBooks and Salesforce are two of the most used cloud based software. They are used by small to large scale companies alike and the integration…
Security in Salesforce | Learn About the Security Levels in Salesforce
This "𝐒𝐞𝐜𝐮𝐫𝐢𝐭𝐲 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞" video by Edureka will help you understand the different levels of security in Salesforce. It will also talk about some of…
How Big Was Salesforce Dreamforce 21 Park? Take a Walk.
This two-minute walk shows exactly how Salesforce Dreamforce 21 International Park was set up. See for yourself how big it is. Also, share your Dreamforce…