-
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 Lightning Component Framework - Learn All About it Here
Introduction The Lightning Component Framework is a UI framework for developing single-page applications for mobile and desktop devices. It uses JavaScript on the client side…
Lightning Customer Community : The Next-Generation Community Cloud
Best in class customer service is one of the dire necessity of this hour for any business to flourish. In today’s connected world creating a…
Using Batch Apex in Salesforce | The Developer Guide
Batch Apex Batch Apex is used to process enormous amounts of data or we can say jobs e.g if we have thousands or millions of…
Popular Salesforce Videos
Creating a Salesforce Lightning App in 12 Minutes
Salesforce is the easiest and quickest way to make quality enterprise apps using clicks instead of code.This video attempts to demonstrate just how quick and…
Salesforce for Non Technicals | Salesforce for Non IT | Salesforce For Non Programmers
Wondering if Non-IT persons can learn Salesforce? Yes, watch this video and learn all you need to know. Do let us know in the comment…
How To Set Up A Site On Salesforce | Salesforce Development Tutorial
Learn how to set up a site on Salesforce. This tutorial will cover the following points - 1. Create Public Websites Choose a branded URL…