Use Visualforce Area home page components to add dynamic content to your home page. For
example, you can present content from partner apps, display charts with the Reports and
Dashboards REST API, or add a canvas app to the home page.
Required Editions
Available in: Salesforce Classic
Available in: All Editions
The Visualforce page that you choose for the component can use a standard or custom
controller. You can include JavaScript in your Visualforce page, but because the component is
rendered in an iframe on the home page layout, the JavaScript can’t interact with the page
that contains the component.
If your Visualforce Area home page component displays in the sidebar, you can dynamically
get the record ID and top-level URL of the page that the component is being displayed on by
using the $CurrentPage global variable in your Visualforce markup.
Using $CurrentPage, you can access the query string parameters for the
page by specifying the parameters attribute, after which you can access
each individual
parameter:
$CurrentPage.parameters.parameter_name
The
parameters for record ID and top-level page URL are, respectively, id and
sfdcIFrameOrigin. For more information, see Getting Query String
Parameters in the Visualforce Developer Guide.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.