-
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
What Happens When Salesforce Meets GDPR?
Are you using cloud apps like Salesforce, Google G Suite, Microsoft Office 365??? Then under the GDPR impact, you should know a few things in…
Strategies For Nonprofits To Navigate Their Way Through 2021 | Salesforce Guide
2020 will be engraved and etched in everyone's minds and hearts for the generations and centuries to come for the surprising, uncertain, and unprecedented turn…
A Step-by-step Guide to Successfully Implement Salesforce
Salesforce is one of the world’s most prevalent and persuasive Customer Relationship Management (CRM) solutions for marketing, sales, and service. Being one of the leading CRM systems in the…
Popular Salesforce Videos
Mocking Apex Tests: Salesforce Tutorial
In this Video Leonardo Berardino talks about the following: Mocking Apex Tests and Apex Mock Examples Unit Tests x Integration Tests How to create unit…
Coronavirus Impact On Healthcare Sector – Time To Rejuvenate | Salesforce CRM
The Covid 19 has created an economic recession in the healthcare industry with disruption in healthcare services. The global healthcare CRM market is likely to…
Multipurpose VF Component to Add Multiple Records on a Button's Click | Salesforce Tutorials
In this video, I will create a multipurpose VF component to add Contact records in a list on the click of a button then I…