-
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 Security Interview Questions
These questions cover a range of topics related to data security in Salesforce and should help you prepare for various aspects of Salesforce security management. …
Asynchronous Apex
Asynchronous Apex is used to run a process in a Separate thread when the are resources available.There is no SLA for these jobs as the…
How to Switch from Classic to Lightning Easily and Why you Need It?
Salesforce Lightning offers a modern, streamlined interface that enhances user productivity and provides powerful customization capabilities. If you're still using Salesforce Classic, it's time to…
Popular Salesforce Videos
How to Manage Bulk Data in Salesforce?
Data is at the heart of everything you do in your business. It is also the engine that drives your Salesforce instance. Without it, how…
Salesforce Developer Training Videos For Beginners | Salesforce Training
This Salesforce Training Video is the video session of a live virtual class conducted by Simplilearn. So if you just go through the video you…
Integration using Salesforce Connect
Salesforce Connect is a powerful App Cloud integration service, which enables users of Salesforce applications to seamlessly access and handle data stored in external sources,…