-
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
Things to Consider Before Choosing CDP Implementation Partner
Are you looking for a Salesforce CDP integration and implementation services provider and don’t know how to choose the right CDP for your business, then…
Salesforce Marketing Cloud Datorama: Bring Your Data into Play
Datorama solves marketing data challenges, being one of the features of Salesforce Marketing Cloud. Looking for an in-depth overview of Salesforce Marketing Cloud and its…
Popular Salesforce Videos
Sales Cloud: Opportunity Splits in Lightning Experience
In today's connected world, technology is rapidly becoming the difference between big quarters and big misses. Companies must empower every sales rep to sell faster,…
Salesforce Demo - Sales Dashboard Example
Our team created a comprehensive sales dashboard for one of our clients. We're posting this video about it to generate feedback and additional ideas for…
Prepare for Your Salesforce Pardot Implementation
If you're preparing for your Pardot implementation, you've come to the right place! Pardot implementation is a complex, multi-step process. In this video, we will…