-
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
Send Salesforce Campaign Members to MailChimp for Email Marketing
After successfull installation and configuration of MailChimp for Salesforce app, Please follow the steps to add Campaign Members to the MailChimp List directly from the…
Salesforce Software Engineer: The future
What is a Salesforce Consultant? A Salesforce Consultant conventionally wears different covers. They might work in-house inside an association or be contracted as an external…
Salesforce Gearset Pipeline in 2024
In this article, I will tell you a bit about my experience with Gearset, one of the most popular Salesforce DevOps tools these days. It…
Popular Salesforce Videos
How Can Salesforce Marketing Cloud Help You Grow Your Business Exponentially?
Salesforce Marketing Cloud can help you take your marketing to the next level by providing an all-in-one platform that helps you strategize across multiple channels.…
Sandbox Design Strategies for Enterprise Implementations
It is inevitable to avoid Sandboxes in most enterprise implementations. As different teams work on different processes like testing, development, pre-release, and final rollout, it…
How To Reset Salesforce Security Token?
Salesforce security token is a case-sensitive unique key that is used to work with Salesforce API. In this video I will show you how to…