-
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
Top 10 Salesforce Interview Questions with Answers
The success and prosperity of any modern business depend on its ability to communicate with customers and meet their demands. That is why efficient Customer…
Unlocking the Future of User Management: Salesforce's Latest Innovations and Roadmap
Salesforce recently announced a major shift in data access and user permissions, ushering in a new era of user management. Permissions on profiles will be…
What are Lightning Record Pages in Salesforce? | All You Need to Know
Lightning Record Pages and Assignment Layouts are two important features of Salesforce that help users customize their experience and streamline their workflow. In this blog…
Popular Salesforce Videos
Salesforce on Salesforce: How Salesforce Uses Trailhead to Drive Enablement
With Trailhead, Salesforce is transforming the learning experience for our employees at every step of their career journey. Join us to learn tips, tricks and…
Salesforce User Experience UX Designer Certification
The Salesforce User Experience (UX) c is designed for individuals who have at least 6 months in UX design and 3–6 months’ experience utilizing UX…
How to Create an Automated File Import in Salesforce Marketing Cloud
Cameron Robert shows how to create an automation to import files from your FTP into Data Extensions in Salesforce Marketing Cloud. File Import Automations are…