LogoLogo
TrustAPI Docs
  • Application
  • Support
  • Platform
  • Infrastructure
  • Security
  • Notices
  • Overview
  • Protect Data
    • Auto Backup
      • Auto Backup API Usage
      • Supported Objects
      • Delete Tracking
      • Salesforce Metadata Backup
      • Missing Field Permissions
      • Viewing Records
      • Viewing Files
    • Archive
      • Support for Big Objects
    • Restore
      • Restore Best Practices
    • Purge
  • Reuse Data
    • Global Search
    • Data Lake (formerly History Stream)
      • AWS Data Lakehouse
      • DuckDB Data Lake
      • Heroku Data Lakehouse
      • Azure Data Lake
      • Data Lake FAQ
      • Data Lake v1 (formerly History Stream)
    • Salesforce Sandbox Seeding
      • Sandbox Seeding Walkthrough
    • Public API
    • Managed Package
      • Second Generation
        • Features
        • Install
        • Update
        • Uninstall
      • First Generation
        • Features
        • Configure
        • Uninstall
        • Migrate
      • Frequently Asked Questions
  • Other
    • Settings
      • Connecting Salesforce
      • Connecting Storage
      • Sandbox Refresh
    • Notifications
    • Permissions
      • Integration User
      • Integration User Scripts
    • Troubleshooting
      • Debugging Salesforce Triggers
    • Auto Updates

Copyright © 2025 GRAX, Inc.

On this page

Was this helpful?

Export as PDF
  1. Reuse Data
  2. Managed Package
  3. Second Generation

Install

Second-Generation Managed Package

Last updated 28 days ago

Was this helpful?

GRAX Application Required

The GRAX Managed Package consists of Lightning Web Components that send traffic to a GRAX application server in order to function. Make sure you have a healthy GRAX app running with Auto Backup enabled before setting up the Managed Package.

Installing and configuring the second-generation Managed Package for the first time is quick and easy. The steps below cover everything from choosing the right org to getting a component added to your first page layout. If you become stuck or encounter unexpected issues while following these steps, feel free to for assistance.

1

Choosing the Right Salesforce Org

The Managed Package needs to be installed into the same Salesforce org that the GRAX application you'll be using is connected to. Make sure you're using that org for this process.

2

Log in to Salesforce

Log in to the chosen Salesforce org via your standard login process as a user with the permissions to install Managed Packages. The standard "System Admin" profile is sufficient.

3

Start the Installation

Depending on the type of org you've chosen, open the relevant link below to start the install process.

Opening the correct link will cause a package installation menu to appear.

Salesforce allows packages to be installed for all or some of your users and will present you with a few options. These options determine which users are granted access to the components and classes that power the package features. These options, and their impact, break down as follows:

Select the group you would like to install the package for and click "Install."

Installation should take less than a minute in an average org, but may take longer if you have a very large or very customized org. During the wait, you will see a loading indicator.

Once the installation is completed, a success message will show and you will receive a confirmation email.

4

Configure Custom Settings

The components included in the package source the target server URL from a Custom Setting. Installing the package creates this custom setting, but it is empty by default. You will need to set an organization-default value for the setting before anyone can use the components.

Start by opening the custom settings menu.

Find the "GRAX Settings" item in the list and click "Manage."

Click "New" to create a new organization-level default setting.

Enter the full https://[...].com formatted public domain name of your GRAX application without a trailing slash and click "Save."

5

Configure a Trusted URL (Application)

The components included in the package are iframed pages retrieved from your GRAX application server. Due to browser security restrictions, additional configuration is necessary to tell Salesforce that you trust the GRAX server to serve iframe content in your org.

To start, open the "Trusted URLs" menu.

To add a new Trusted URL for your GRAX application, click "New Trusted URL."

Make the following changes to the "New Trusted URL" form:

  • Name it anything you'd like

  • Use the same https://[...].com formatted domain name as used in the Custom Setting as the URL

  • Check the frame-src box

  • Leave the img-src box checked

Now click "Save" to create the record.

6

Configure Another Trusted URL (HQ)

Due to enhanced default Content Security Policy settings in recent Salesforce releases, it's necessary to also flag GRAX's centralized authentication server as trusted. Repeat the steps above to create another Trusted URL, but make the following modifications to the form:

  • Name it anything you'd like

  • Use https://hq.grax.com as the URL

  • Check the frame-src box

  • Leave the img-src box checked

Now click "Save" to create the record.

7

Add a Component to a Page Layout

To see a component in action and test it out, you'll need to modify a page layout for a standard object. Start by opening a standard object record (Case, for example) page in your Salesforce org and then opening the "Setup" sidebar. Click the "Edit [Object] Page" option under "Customization" to open the Lightning App Builder.

Within the Lightning App Builder, the record-page-compatible GRAX components will be available under the "Custom - Managed" category in the components list.

It is recommended to place GRAX components on a separate tab that is not loaded by default when a user opens the record page. This improves the load time of the page in common use cases and minimizes unnecessary traffic to and from your GRAX application.

For purposes of initial testing, we'll use the Related Records component. To add a component to the page, create a new tab and drag the GRAX component onto it from the "components" menu. Initially, some components (like Related Records) may have invalid configurations because they need additional setup to behave properly.

Add the API name of any object directly related to the parent object (whatever object's record page you're modifying) to the component's input settings and save the layout.

The component should now render with data based on your backed up data. Depending on exactly which objects you chose, the exact format of the component may vary. A few examples of the Related Records component are shown below for reference.

Initial setup and verification is now complete. For more information about the package, checkout our , , and guides.

feature
update
uninstall
Install for Admins Only
Waiting/Loading Message
Success Message
Confirmation Email
contact our Support team

Use this link for any Salesforce org that is considered a production org or which uses the login.salesforce.com login page (like Developer Edition orgs).

Use this link for any Salesforce org that is considered a sandbox or which uses the test.salesforce.com login page.

Specifies the following settings on the installing administrator’s profile and any profile with the Customize Application permission:

  • Apex classes - enabled

  • Custom LWC tab - enabled

  • Custom Settings record - enabled

  • Second Generation LWCs - enabled

After installation, if you have Enterprise, Performance, Unlimited, or Developer Edition, set the appropriate user and object permissions on custom profiles as needed

Specifies the following settings on all internal custom profiles:

  • Apex classes - enabled

  • Custom LWC tab - enabled

  • Custom Settings record - enabled

  • Second Generation LWCs - enabled

Enables you to choose the usage access for all custom profiles in your organization. You can set each profile to have full access or no access for the new package and all its components.

  • Full Access

    • Apex classes - enabled

    • Custom LWC tab - enabled

    • Custom Settings record - enabled

    • Second Generation LWCs - enabled

  • No Access

    • Apex classes - disabled

    • Custom LWC tab - disabled

    • Custom Settings record - disabled

    • Second Generation LWCs - disabled

Logohttps://getgrax.co/prod-gen2
Logohttps://getgrax.co/sandbox-gen2