Loading...

Creating a New Visualforce Page for a Salesforce Object

You must create a new Visualforce page for standard objects that do not have a Visualforce page layout by default, or custom objects, that need access to the ObjectStore.

Before You Begin

Identify the API Name for a Salesforce Object.

Procedure

  1. Sign in to Salesforce with a Salesforce administrator account.
  2. Click Setup in the upper right of the page.
  3. In the navigation pane, click Build > Develop > Visualforce Pages.

    The right pane displays a list of the Visualforce pages.

  4. In the middle of the page, click New.

    The Page Edit page appears.

  5. Enter the details for the Visualforce page.
    1. In the Label box, type the Visualforce page label.

      The name has the format COS ObjectName VF, for example COS Inventroy VF.

    2. In the Name box, type the Visualforce page name.

      The name has the format COS_ObjectName_VF, for example COS_Inventroy_VF.

    3. In the Description box, type the Visualforce page description, for example "This page accesses the Commvault ObjectStore for the Inventory object".

      The name has the format COS_ObjectName_VF, for example COS_Inventroy_VF.

  6. On the Visualforce Markup tab, add the code snippet similar to the one below, substitute the ObjectAPIvariable with the value that you noted from the Identifying the API Name for a Salesforce Object procedure:

    <apex:page standardController="ObjectAPI" showHeader="false" showChat="false" sidebar="false">
    <c:COS_Component />
    </apex:page>

    Example

  7. Click Save.

What to Do Next

Add the ObjectStore to a Salesforce Object Page Layout.

Last modified: 7/10/2018 3:05:56 PM