-
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
How to Display a Bar Chart using Visualforce and Apex of Daily API Request in Salesforce Org?
Introduction Visualforce is a web development framework that enables developers to build sophisticated, custom user interfaces for mobile and desktop apps that can be hosted…
Salesforce Chatter vs Slack - A Comparative Analysis
As part of its strategic acquisition policy, Salesforce surprised the world with the billion-dollar acquisition of Slack Technologies Inc. In the words of Marc Benioff,…
Apex Integration in Salesforce - The Developer Guide
This article closes the arrangement, Learning Salesforce Integration, which subtleties different joining choices with Salesforce. It covers utilizing Apex for building incorporations, which turns into…
Popular Salesforce Videos
Einstein For Marketing Cloud | The Learning Guide
AI has made things easy and smooth for any automation process. Einstein for Marketing Cloud provides insights and data to inform the content and timing…
Create and Format Derived Measures
In the explorer, you can perform calculations on existing measures and use the results to create a new measure that’s not part of your dataset.…
ChargeOn Payment Processing For Salesforce: Enhance Your Salesforce Payments
Do you wish to receive payments in Salesforce but are unsure how to get started? Don’t worry; we've got you covered. ChargeOn is a fully…