-
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
How to Integrate Salesforce With Social Media Channels
More than 60% of the world now uses social media and has active profiles on more than six social media platforms. Social networks have long…
Know All About the Role of Salesforce Administrator
The role of a Salesforce Administrator is wide and varied, depending on the skills of the person performing the role and the size/complexity of the…
5 Secrets to Master Salesforce for High Business Growth
What is Salesforce? Salesforce/Salesforce cloud is an intelligent ecosystem infused with AI and IoT that offers a variety of solutions to all-size enterprises, including non-profits, in…
Popular Salesforce Videos
Salesforce on Salesforce: How Salesforce Uses Trailhead to Drive Enablement
With Trailhead, Salesforce is transforming the learning experience for our employees at every step of their career journey. Join us to learn tips, tricks and…
How Salesforce Industries can be Used on Top of Salesforce?
Salesforce Industries offers pre-built solutions on the Salesforce platform that solve the needs of particular industries. Vlocity takes these common requirements and packages them into…
How to Use Product Rules with Salesforce CPQ
In this demo video, you'll learn about the three most popular types of product rules for CPQ: validation, alert, and selection. You'll also see how…