-
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 Create and Run Test Suite in Salesforce?
Test Suites : "A set of test classes that you want to execute together is called Test Suites. Test suites can be created for the…
Sandboxes in Salesforce - All you Need to Know
Sandboxes Sandboxes are utilized to make different duplicates of the production organization. Different or a few duplicates of the organization can be created like one…
Architecting the Future of Finance: How MuleSoft Accelerates Open Banking Compliance
The global financial system faces a massive structural shift. Regulatory bodies worldwide now require traditional institutions to share financial data with third parties. This movement…
Popular Salesforce Videos
Displaying Field Values with Visualforce | Salesforce Video Tutorial
In this video, Rakesh Soni shows us how to display Field Values with Visualforce. This is a great video for anyone who wants to learn…
Dreamforce to You London 2019: Round-up Video!
Great to contribute to the Salesforce #Dreamforcetoyou event as a Cloud Social Influencer and here is my roundup.
How to Find Job as a Fresher in Salesforce - Tips and Tricks
In this video Rohit Puri gives a detailed explanation of the questions that everyone has regarding Salesforce jobs, how to find jobs in Salesforce on…