Adding Glance Buttons to Salesforce Records
The Glance buttons can be used from any record in Salesforce. These buttons are added by putting a Lightning Component on a Lightning Record Page or a small Visualforce page on a Page Layout.
To make it easy for your agents to use Glance with customers, we recommend putting the buttons somewhere visible on your pages without requiring a scroll or click to expose them, especially if you are using 1-Click Connect to illuminate the Join button when your customer is present on your website.
Add the Glance Buttons to Lightning Records
To add the Glance buttons in Lightning:
- Open the app from the App Launcher that will be used by your Glance users, such as the Service Console.
- Navigate to a record type that you want to add Glance to, like a Contact or Case.
- Click the Gear icon in the top right corner and choose Edit Page.
- On the left sidebar, under Custom - Managed, click and drag Glance over onto the console wherever you want Glance to be placed.
- Click Save.
- If prompted, click Activate.
- You might be prompted to assign the record page.
- After you assign the record page, click Save.
- In the top right corner, click Back.
- Repeat steps 2 to 11 for any other Lightning Record Pages you want to add Glance to.
Add Glance Buttons to Page Layouts in Classic
If you add these buttons to Classic, it will make the buttons appear clipped on the Details of a record in Salesforce Lightning.
Follow these steps to add a Glance button to standard objects you will be using with Glance. This example uses Case layouts.
- On the top-right corner of Salesforce Classic, select Setup.
- In Quick Find, search for Case.
- Choose Case.
- Click on Page Layouts.
- Select the Edit link in the row Case Layout.
- At the top of the page, you should now see the Case Layout section.
- Select the Visualforce Pages layout option.
- From the right-hand panel of Case Layout, select GlanceFromCase.
- Drag the GlanceFromCase to the Case Detail section. Note: We recommend placing GlanceFromCase at the top of the right-hand column of the Case Detail section. The page is too big by default. Hover over GlanceFromCase and click on the wrench icon.
- In the Visual Page Properties pop-up window, change the Height from 200 to 24 pixels.
- Click OK.
- Scroll back up the page and find the Case Layout section.
- Click Save.
- After creating your page layouts, click the Page Layout Assignment button to control which page layout users see by default.
Below is an example of the Show, View, and Join buttons added to a Case object: