-
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
Meet Einstein GPT, the first generative AI for CRM
Since its release in November 2022, Chat GPT has become a buzzword - over a million people signed up to use it in just five…
Types of Data Extensions in Salesforce Marketing Cloud
In Salesforce Marketing Cloud, data extensions are the tables that store our data. It can be from within Marketing Cloud, Sales Cloud, manually added/imported, or…
Learn Salesforce Einstein – Chapter 8 (Training – Create Model)
Go to the Dataset Detail page. Here click on Create Model button. It will open a new page asking for Model Name. Fill the name here…
Popular Salesforce Videos
Salesforce Tutorial - Data Loader Installation On Windows - with Zulu Open JDK
Data Loader is utility to perform bulk database operation. Recently Salesforce has changed the way data loader need to be install. I explain end to…
Password Protect Records in Salesforce
Suppose Salesforce org record level access is set to Public Read Only and now business want to restrict few records visible to only those users…
Time-based Workflow Rules In Salesforce | Salesforce Tutorial
Learn all about time-based workflow rules in Salesforce. This tutorial will cover the following points - 1. Create A Workflow Rule Learn how a workflow…