-
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

Salesforce Flow: A Guide to Automating Business Processes
Table of Contents Introduction Identify the Processes for Automation Map Out the Process Create Your Flow with Salesforce Define Elements and Logic Test Your Salesforce…

Top 5 Ways Salesforce CDP Solves Customer Data Challenges and Benefits Business Growth
Technology is evolving at a fast pace, and so are the customers. In the present time, the way customers interact with a business is highly…

Top 5 Accounting Software For Salesforce
Salesforce unlocks the door to opportunities for better customer relationships and engagement. Businesses working on Salesforce might face difficulties in handling income, expenses, cash flow,…
Popular Salesforce Videos
The New Salesforce Nonprofit Cloud: How To Upgrade
The new Salesforce Nonprofit Cloud is an innovative platform tailored specifically to enhance the operations and effectiveness of nonprofit organizations. This advanced solution provides a…
Salesforce Customer 360 Data Manager
Salesforce Customer 360 Data Manager is a cross-cloud integration capability that allows Salesforce admins and developers to combine and reconcile customer data from their Salesforce…
Business Days in Salesforce CRM Analytics (Tableau CRM)
It's common for businesses to want to take business days into account when showing data on a dashboard in CRM Analytics (formerly Tableau CRM) to…