-
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
Your Salesforce Developer Is Not an AppExchange Developer, and the Gap Costs About Six Weeks
Everyone who has ever cooked a great dinner party has, at some point, been told they should open a restaurant. It is a compliment, and…
4 Ways to Achieve Heroku-Salesforce Integration
Heroku provides a cloud application platform to create, run, and work with your cloud-based application. Heroku supports several programming languages like JAVA, Python, and PHP.…
Using Salesforce to Manage Accounting Journeys
Many companies falsely believe that accounting is not related to customer services and business growth, making the mistake of improvising the accounting section. However, the…
Popular Salesforce Videos
Introduction to Report and Dashboard in Salesforce | Salesforce Training Videos
A report is a list of records that meet the criteria you define. It's displayed in Salesforce in rows and columns, and can be filtered,…
Skill Based Routing with Apex/Flows in Salesforce
This video is the sequel to the omnichannel Salesforce tutorial (LINK) In this video, we will cover: 1. What is Skill-based routing 2. Why is…
How a Veteran can Start Their Career in Salesforce?
Let's Understand how a veteran can start their career in Salesforce? Please watch the full video and like, share and comment. Shrey is a Chief…