How to Access a Visualforce Page in Salesforce
- Sophie Ricci
- Views : 28,543
Table of Contents
You’ve heard about Visualforce pages. Maybe someone on your team built one, or you found a reference to one in documentation. But when you go looking for it inside Salesforce, you’re staring at a blank screen wondering where to even begin.
That gap between “knowing Visualforce exists” and “actually knowing how to get to it” is more common than you think. According to Salesforce’s own research, over 150,000 companies actively use Salesforce, and a significant portion of their teams work with custom-built pages every single day — but access methods vary depending on your setup, permissions, and org configuration.
This guide closes that gap. Whether you’re a developer testing a page you just wrote, a manager trying to review a custom interface, or a new team member exploring your company’s Salesforce build — you’ll walk away knowing exactly how to find and open any Visualforce page.
What Is a Visualforce Page
Before we dive into the access methods, let’s get aligned on what you’re actually looking for.
A Visualforce page is a custom web page built directly inside Salesforce using a tag-based markup language similar to HTML. It runs on Salesforce’s servers, respects your org’s security model, and can access all your Salesforce data without any integration work.
Think of it like building a custom room inside an already-built house. The plumbing, electricity, and structure are all there — you just customize the walls and furniture.
Visualforce has been part of Salesforce since 2008. Salesforce reports that millions of Visualforce pages are deployed across orgs worldwide. Despite the newer Lightning Web Components framework gaining ground, Visualforce remains deeply embedded in thousands of production orgs, especially for complex custom layouts, PDF generation, and legacy workflows.
How to Access a Visualforce Page in Salesforce
There are multiple ways to reach a Visualforce page depending on how it was set up in your org. Here are the most reliable methods.
Access via Direct URL
This is the fastest method if you know the page name.
In your browser’s address bar, type:
https://[yourInstance].salesforce.com/apex/[PageName]
Replace [yourInstance] with your Salesforce domain (e.g., na45, eu5, or your custom domain like yourcompany.my.salesforce.com), and replace [PageName] with the exact API name of the Visualforce page.
Example:
https://yourcompany.my.salesforce.com/apex/CustomerPortal
If you’re already logged in, the page will load instantly. If not, Salesforce will prompt you to log in first.
Pro tip: If the page name has a namespace prefix (common in managed packages), the URL looks like:
https://yourInstance.salesforce.com/apex/namespace__PageName
Access via Setup Menu
If you need to find, view, or edit Visualforce pages — not just use them — the Setup menu is your home base.
- Click the gear icon in the top right corner of Salesforce
- Select Setup
- In the Quick Find search box on the left sidebar, type Visualforce Pages
- Click Visualforce Pages under the Develop section
You’ll see a complete list of every Visualforce page in your org, along with the page name, label, and last modified date.
From here you can:
- Click the page Label to preview it
- Click Edit to open the page builder
- Click Preview to see how it renders
This method requires admin-level or developer access. If you don’t see the Visualforce Pages option in Setup, your profile may not have the necessary permissions.
Access via Custom Tab
Many orgs surface Visualforce pages as custom tabs so non-technical users can reach them without memorizing URLs.
To access a page through a tab:
- Look in your App Launcher (the 9-dot grid icon in the top left)
- Search for the tab name associated with the Visualforce page
- Click it — the page loads directly in the Salesforce interface
If you’re an admin and want to create a tab for a Visualforce page:
- Go to Setup → Tabs
- Click New under the Visualforce Tabs section
- Select the Visualforce page from the dropdown
- Name the tab and choose an icon
- Add it to the apps where it should appear
Custom tabs make Visualforce pages feel like a native part of the Salesforce app — no URL required.
Access via Page Layout or Related List
Some Visualforce pages are embedded directly inside record pages rather than existing as standalone pages. You might see them:
- In a section of a Contact or Opportunity record
- As a related list at the bottom of a record page
- As an inline iframe within an object layout
To check if a page is embedded this way:
- Open a record (e.g., an Account or Opportunity)
- Look for custom sections that display differently from standard fields
- If you need to manage it, go to Setup → Object Manager → [Object] → Page Layouts and scroll through the layout to find the Visualforce section
Access via Developer Console
If you’re a developer and want to open, debug, or run a Visualforce page in a controlled environment:
- Click the gear icon → Developer Console
- In the Developer Console, go to File → Open
- Select Pages as the entity type
- Find the page by name and open it in the editor
From here you can view the Visualforce markup, edit it, and use the Preview button (the page icon in the toolbar) to open the live page in a new tab.
Access via Classic Interface
If your org is running Salesforce Classic (not Lightning Experience):
- Click the + tab at the end of your navigation bar
- Select All Tabs
- Look for any tabs labeled with your Visualforce page names
- Alternatively, navigate directly using the /apex/PageName URL method
Most orgs have migrated to Lightning Experience — Salesforce reported that over 85% of active orgs have made the switch — but Classic remains active in some legacy environments.
How to Check If You Have Access to a Visualforce Page
Not every user in a Salesforce org can access every Visualforce page. Access is controlled by:
Profile Permissions Admins can enable or restrict Visualforce page access per profile. To check:
- Go to Setup → Profiles
- Click the profile you want to review
- Scroll to Enabled Visualforce Page Access
- Add or remove pages from the list
Permission Sets Similar to profiles, permission sets can grant specific users access to individual Visualforce pages without changing their entire profile configuration.
Sharing Settings If a Visualforce page queries records, the user’s record-level access still applies. The page won’t show data the user doesn’t have permission to see.
Common Issues When Accessing Visualforce Pages
Here’s where most people get stuck — and how to fix it fast.
“Insufficient Privileges” error Your profile doesn’t have access to that Visualforce page. Ask your Salesforce admin to enable it in your profile or assign you a permission set.
Page loads blank The page may have an error in the controller code, or you may be missing a required record context (some pages only work when opened from a specific record). Check the browser console for JavaScript errors.
“Page Not Found” (404 error) The page name in the URL is either wrong or the page was deleted. Double-check the API name in Setup → Visualforce Pages.
Page doesn’t appear in tab list The tab may exist but not be added to your app. Go to Setup → App Manager, find your app, click Edit, and add the Visualforce tab to the navigation items.
Session timeout redirect If Salesforce redirects you to a login screen when accessing a Visualforce page, your session expired. Log back in and try the URL again.
Visualforce vs Lightning — Why Both Still Matter
A question that comes up constantly: should I even be building on Visualforce, or should I switch to Lightning Web Components (LWC)?
The honest answer depends on your situation. Salesforce’s own data shows:
- Visualforce still powers millions of deployed pages across enterprise orgs
- Many complex PDF generation, custom portals, and legacy integrations are built on Visualforce and would take significant effort to rebuild
- Lightning Web Components offer better performance and a modern development model but require a learning curve
For new development, Salesforce recommends LWC. For accessing and maintaining existing pages, Visualforce knowledge remains essential. According to Stack Overflow’s Developer Survey data, Salesforce development skills — including Visualforce — remain among the highest-compensated in enterprise software, reflecting how deeply embedded these systems are.
How to Build a New Visualforce Page (Quick Overview)
If you have developer access and want to create your own:
- Go to Setup → Visualforce Pages
- Click New
- Give the page a label and API name
- Start writing your Visualforce markup in the editor
- Click Save
- Click Preview or navigate to /apex/YourPageName to see it live
Here’s the simplest possible Visualforce page to confirm everything is working:
<apex:page>
<h1>Hello, Salesforce!</h1>
<p>This is my first Visualforce page.</p>
</apex:page>
Save it, hit preview — if you see “Hello, Salesforce!” rendered in the browser, your environment is working correctly.
Salesforce Statistics Worth Knowing
Understanding the scale of Salesforce’s ecosystem helps explain why Visualforce knowledge remains valuable:
- Salesforce holds approximately 21.7% of the global CRM market share — more than its next four competitors combined (Salesforce, 2024)
- There are over 150,000 companies using Salesforce globally across industries
- The Salesforce ecosystem is projected to generate $1.6 trillion in business revenues and create 9.3 million jobs by 2026 (IDC)
- Salesforce has over 4 million developers in its community, many of whom work with Visualforce daily
- 85%+ of Salesforce orgs have transitioned to Lightning Experience, but Visualforce pages continue to run within Lightning via Lightning Out and embedded components
- Salesforce AppExchange has over 7,000 apps, a large portion of which include Visualforce components
These numbers matter because they tell you Visualforce isn’t going anywhere soon. If you work inside a Salesforce-heavy organization, learning to access, navigate, and manage Visualforce pages is a genuinely durable skill.
🎯 Stop Chasing Leads Manually
Turn LinkedIn Into Your Best Sales Channel While your team is deep in Salesforce config, your best prospects are on LinkedIn — waiting. SalesSo builds complete outbound systems with precision targeting, campaign design, and scaling methods that generate 15–25% response rates vs. cold email's 1–5%.
7-day Free Trial |No Credit Card Needed.
FAQs
Does a professional LinkedIn photo really make a difference?
What's the best size for a LinkedIn profile photo?
Should I smile in my LinkedIn photo?
Can I use an AI-generated headshot for LinkedIn?
How does a better LinkedIn photo help with outreach and lead generation?
We deliver 100–400+ qualified appointments in a year through tailored omnichannel strategies
- blog
- Sales Development
- How to Access a Visualforce Page in Salesforce