-
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
Top 10 Salesforce Development Companies in the UK
In today’s fast-paced digital landscape, businesses across the UK are investing heavily in CRM platforms to improve customer engagement, automate workflows, and drive business growth.…
Top Salesforce Integration Tools to Boost your Sales
When it comes to improving productivity and business relationships, the importance of Salesforce CRM solution remains undisputed. Salesforce system allows B2B and B2C businesses to…
From Strategy to Execution: Making Salesforce Work for You
Salesforce has earned its spot as the top CRM system, empowering companies to manage customer relations to streamline their operations and boost growth. However, purchasing…
Popular Salesforce Videos
Salesforce Interview Questions and Answers | 70 Salesforce Interview Questions for the Beginners
In this video, Interesting data explains 70 Salesforce Interview Questions for Beginners. All the interview questions have been divided into the following important areas of…
Segments of Salesforce Data Cloud
In this extract, Shrey and Vishwajeet break down the different segments of the Salesforce Data Cloud and explain how they can help businesses of all…
5 Benefits of Integrating Mulesoft Into Your Business | Salesforce Integration
The MuleSoft integration solution has provided visionaries throughout the world with the power to connect all their data, systems, and devices seamlessly. Swipe to know…