Skip to main content

Add Insights & Recommendations for Multiple Showpad Instances

The Showpad Insights and Recommendations app enables you to view logged Showpad activity as Insights information in Salesforce. It's connected to a single Showpad instance. You can point multiple Showpad instances to a single Salesforce environment by creating copies of the Visualforce Page to manually set parameters sent to the Canvas App.

multiple insights

Configuration

Prerequisites

For one connection, the standard configuration can be used as described in this Help Center article. This connection will be considered your original connection. For each additional Showpad instance connection, you must copy and modify the original Visualforce Page element per object you want the insights for.

Visualforce Page

  1. From the gear icon, select Setup:

    setup

  2. In the Custom Code menu of the left navigation, select Visualforce Pages.

  3. Select and open the original Visualforce Page element for the object (Account, Contact, Lead, Opportunity) to copy.

  4. Copy the code in the Visualforce Markup tab.

  5. Return to the Visualforce Pages overview and create a new Visualforce Page:

    new vf page

  6. Complete the following:

    • Enter a Label and Name for the new page. The name should reference the object type and Showpad instance name.
    • Check the Available for Lightning Experience, Experience Builder sites, and the mobile app option
    • replace the default code in the Visualforce Markup tab with the code from the original Visualforce Page

    new page

    • Now you can modify the new page you created to specify explicitly the Showpad subdomain to use. Within the Visualforce code, locate the apex:canvasApp element, and modify the parameters property as shown in the example below. Replace {{subdomain}} with the domain of an additional Showpad instance.

      <apex:canvasApp
      developerName="showpad_canvas_app"
      parameters="{
      domain:'{{subdomain}}',
      application: 'crm-widget',
      recipients: '{!recipientEmails}'
      }"
      entityFields="Id,Name"
      width="100%"
      maxHeight="infinite"
      scrolling="auto"
      height="100%"
      />
    • Bonus Additional Parameters: You can create multiple copies of a Visualforce Page element and display Recommendations and Activities in different locations on an object page by hiding either the Recommendation or Insights section inside the Showpad App:

      showActivitities: false;
      showRecommendations: false;

      The following code displays only Insights:

      <apex:canvasApp
      developerName="showpad_canvas_app"
      parameters="{
      domain:'{{subdomain}}',
      recipients: '{!recipientEmails}',
      showRecommendations: false
      }"
      entityFields="Id,Name"
      width="100%"
      maxHeight="infinite"
      scrolling="auto"
      height="100%"
      />

      insights only

  • Click Save to register your changes.
warning

You must repeat the above process for each instance you want to connect.

Implementing new VF Page into Page Layouts

filters

Your new Visualforce Page element can now be used on the object detail pages like any other Visualforce page.

We recommend using different page layouts and/or filters by user groups to only show the appropriate Showpad Recommendations & Insights App for users that also have access to the corresponding Showpad instance.

Updating Manual Copies

Salesforce admins should regularly check for new versions of the Showpad for Salesforce App in the Marketplace. Installing updates will not automatically update the manual copies of the Visualforce Pages. The the admin must adjust the version settings of the pages.

  1. From the gear icon, select Setup.

  2. In the Custom Code menu of the left navigation, select Visualforce Pages.

  3. Click Edit for the Visualforce Page element to update.

  4. On the Version Settings tab, ensure the Showpad for Salesforce version points to the latest version.

    version