-
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

Fillable PDFs for Salesforce Field Service
Automating the generation and parsing of fillable PDFs in Salesforce Field Service can help you save time and eliminate human errors during data entry. Some…

How To Use Database.Stateful Interface In Batch Apex In Salesforce
1. In Batch apex Changes made by one execute do not transfer to the other execute, so we need to implement “Database.Stateful” if the batch process…

Creating a Salesforce Extension: From Idea to Listing on Appexchange
With more than 6 million AppExchange installs, it's no wonder that 89% of Fortune 100 companies are using apps from Salesforce's AppExchange to get things done smoothly…
Popular Salesforce Videos
Building Slack Apps with Apex on Salesforce
Slack has traditionally been associated more with non-Salesforce backends such as AWS. Now that Slack is a Salesforce product, Salesforce developers are probably curious about…
Salesforce Financial Services Cloud Spring '23 Highlights
Shake off those winter blues with the new features coming in Salesforce's Spring '23 Release for Financial Services Cloud. Whether it's ARC enhancements, interaction summary…
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.