-
What is the difference between given two Salesforce Apex code in description?
Apex Code 1:-
public PageReference save()
{
PageReference pr = new PageReference('/apex/AnyApexPage');
pr.setRedirect(true);
return pr;
}
Apex Code 2:-
public PageReference save()
{
return Page.AnyApexPage;
}
Log In to reply.
Popular Salesforce Blogs
Automation in Financial Services Cloud: 7 Automated Processes for FinTech
Digital-first customers dominate financial services — and they aren’t very satisfied. While many consumers have become accustomed to conducting their financial transactions online due to…
Tips and Tricks For Test Class In Salesforce
Introduction Testing is an important part of the Salesforce development life cycle (SDLC). Therefore it is mandatory to test your code before deploying it to…
Health Cloud Console Unit in Salesforce - Get Started
In this blog, we will discuss about Health Cloud, its specific terminology, and its architecture. Let’s move to Salesforce Health Cloud Core Capabilities which are:…
Popular Salesforce Videos
Direct Messaging In Salesforce | Salesforce Lightning
Salesforce has addressed the main challenge retailers face is replicating the one-to-one in-store interactions with their customers, and supporting a seamless buying experience. Resolving these…
Discount Categories in Salesforce CPQ
Use the discount category object to store values that you want to apply via rules to one or more products. After you associate the discount…
How Salesforce is Paving The Way To Greater Digital Transformation
Digital transformation success is often a question of speed & implementation. Companies know how important technology is to their business, but can they evolve and…