Configure additional Revenue Grid organizations in the Salesforce integration#

The Revenue Grid managed package originally operated in a single-organization model. All Salesforce users in the same Salesforce organization communicated with the same Revenue Grid organization using the default Named Credential (REVGRD__RG_Named_Creds) and the External Credential (RG_Ext_Creds) included in the package.

Starting from version 1.97, Revenue Grid supports connecting different users or profiles in the same Salesforce organization to different Revenue Grid organizations.

This configuration supports two scenarios:

  • Single-organization integration – No additional setup is required. The system continues to use the default credentials.

  • Multi-organization integration – Administrators can create additional Named Credentials and External Credentials and assign them to specific users or profiles.

This guide explains how to configure additional credentials and assign them to users who should connect to another Revenue Grid organization.

Prerequisites#

Before starting the configuration:

Configuration overview#

Repeat the following steps for each additional Revenue Grid organization:

  1. Obtain the Revenue Grid organization URL

  2. Generate the client ID and client secret

  3. Create a new external credential

  4. Create a new named credential

  5. Create a permission set

  6. Allow users to modify named credentials and external credentials

  7. Assign the permission set to users

  8. Create a named credential assignment

  9. Add a new remote site

Step 1: Obtain the Revenue Grid tenant URL#

  1. Open the Revenue Grid platform for the additional organization in a web browser. Signing in is not required. Revenue Grid platform URLs are organization-specific.

    Example:

    https://acme.revenuegrid.com/settings/personal/account
    
    ../../../../_images/RevenueGridURL.webp

    If you do not know your organization’s Revenue Grid URL, contact Revenue Grid Support.

  2. In the browser address bar, remove everything after .com so that only the base URL remains.

    Ensure there is no / after .com.

    Example:

    https://acme.revenuegrid.com
    
    ../../../../_images/RevenueGridTenantURL.webp
  3. Copy the resulting address to a text editor.

This base URL will be used when creating the Salesforce named credential.

Step 2: Generate the client ID and client secret#

Perform the actions in this section in the administration settings of the additional Revenue Grid organization.

Important

The client secret is displayed only once — immediately after the integration is created. Copy and store it securely, as it cannot be viewed again later.

  1. Sign in to Revenue Grid platform and open settings.

  2. Navigate to Administration > App integrations.

  3. Click Create integration in the top-right corner of the page.

    ../../../../_images/CreateIntegration.png
  4. Fill in the integration details:

    Field

    Description

    Title

    Enter a name for the integration (for example, RG managed package).

    Client ID

    Leave this field empty. It is generated automatically.

    Client Secret

    Leave this field empty. It is generated automatically.

    Active

    This field is read-only during creation and is enabled by default. You can disable it later if needed.

    Lifetime

    This field is read-only during creation. The default credential lifetime is 370 days. After the integration is saved, admins can reduce the lifetime if needed.

  5. Click Save at the bottom of the form. After saving, the system will display the client ID and client secret.

  6. Copy the client secret immediately after creation and store it securely. It will not be shown again after you close the dialog.

Step 3: Create a new external credential#

  1. Open Salesforce Setup.

  2. In Quick Find, enter Named Credentials and open the page.

  3. Go to the External Credentials tab and select New.

    ../../../../_images/NewExternalCredentials.webp
  4. In Label and Name, enter recognizable values for the external credential.

    Copy the external credential Name to a text editor. You will need it later when creating the named credential assignment.

    Note

    The External Credential API name can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, contain no spaces, not end with an underscore, and not contain two consecutive underscores.

  5. In Authentication Protocol, select Custom.

    ../../../../_images/NewExternalCredentialForm.webp
  6. Select Save.

  7. In the Principals section, select New.

    ../../../../_images/NewPrincipal.webp
  8. Enter the following values:

    • Parameter Name – Any value

    • Sequence Number – Any number

    ../../../../_images/CreatePrincipalForm.webp
  9. In the Authentication Parameters section, select Add two times to create two parameters.

    Important

    Use the parameter names exactly as shown: client_secret and client_id. These values are case-sensitive. Any variation will cause authentication to fail.

  10. For the first parameter, enter:

    • Name – client_secret

    • Value – The client secret generated in Step 2

    ../../../../_images/ClientSecretAndID.webp
  11. For the second parameter, enter:

    • Name – client_id

    • Value – The client ID generated in Step 2

  12. Select Save.

Step 4: Create a new named credential#

  1. On the Named Credentials page, go to the Named Credentials tab and select New.

    ../../../../_images/NewNamedCredentials.webp
  2. In Label and Name, enter recognizable values for the named credential.

    Copy the named credential Name to a text editor. You will need it later when creating the named credential assignment.

    Note

    The Named Credential API name can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, contain no spaces, not end with an underscore, and not contain two consecutive underscores.

  3. In URL, enter the Revenue Grid organization URL obtained in Step 1.

    ../../../../_images/NewNamedCredentialForm.webp
  4. Ensure that Enabled for Callouts is turned on.

    ../../../../_images/EnabledForCallouts.webp
  5. In External Credential, select the external credential created in Step 3.

    ../../../../_images/ExternalCredentialForNamedCredential.webp
  6. Ensure that Generate Authorization Header and Allow Formulas in HTTP Body are turned on.

    ../../../../_images/CalloutOptions.webp
  7. In Allowed Namespaces for Callouts, enter REVGRD.

    ../../../../_images/AllowedNamedspacesForCallouts.webp
  8. Select Save.

Step 5: Create a new permission set#

  1. In Quick Find, enter Permission Sets, and open the page.

  2. Select New.

    ../../../../_images/PermissionSets.webp
  3. In Label, enter a recognizable name for the permission set.

    ../../../../_images/PermissionSetName.webp
  4. Select Save.

  5. On the permission set page, select View Summary.

    ../../../../_images/ViewSummary.webp
  6. Under Permission Set Information, open the Object Permissions tab and select Edit.

    ../../../../_images/ObjectPermissionsEdit.webp
  7. Find the User External Credential object.

  8. In the Read column, enable the permission.

    ../../../../_images/UserExternalCredentialReadSelected.webp
  9. Select Save.

  10. Return to the permission set page and under Apps, open External Credential Principal Access.

    ../../../../_images/ExternalCredentialPrincipalAccess.webp
  11. Select Edit.

    ../../../../_images/EditExternalCredentialPrincipalAccess.webp
  12. In Available External Credential Principals, select the external credential created in Step 3 and move it to the enabled list.

    ../../../../_images/EnabledExternalCredentialPrincipals.webp
  13. Select Save.

Step 6: Allow users to modify named credentials and external credentials#

  1. Open the permission set created in Step 5.

    ../../../../_images/CreatedPermissionSet.webp
  2. In the System section, select System Permissions.

    ../../../../_images/SystemPermissions1.webp
  3. Select Edit.

    ../../../../_images/EditSystemPermissions.webp
  4. Enable Allows users to modify Named Credentials and External Credentials.

    ../../../../_images/AllowUsersToModifySelected1.webp
  5. Select Save.

  6. Select Save again to confirm the change.

Step 7: Assign the permission set to users#

Assign the permission set to all users who should connect to the additional Revenue Grid organization.

  1. On the permission set page, select Manage Assignments.

    ../../../../_images/ManageAssignments.webp
  2. Select Add Assignment.

    ../../../../_images/AddAssignment.webp
  3. Select the users to assign the permission set to, then select Next.

    ../../../../_images/SelectUsers.webp
  4. Select Assign.

    ../../../../_images/Assign.webp
  5. When the assignments are complete, select Done.

    ../../../../_images/Success.webp

Step 8: Create a named credential assignment#

  1. In Quick Find, enter Custom Settings, and open the page.

  2. Select Manage next to Named Credentials Assignment.

    ../../../../_images/ManageNamedCredentialsAssignment.webp
  3. Select New.

    ../../../../_images/NewAssignment.webp
  4. In Location, select one of the following:

    • User if you want to assign the named credential to specific users

    • Profile if you want to assign the named credential to all users with a specific profile

  5. Click the lookup icon, search for the required user or profile, and select it.

    ../../../../_images/Location.webp
  6. In External Credentials Name, enter the external credential name created in Step 3.

  7. In Named Credentials Name, enter the named credential name created in Step 4.

  8. In Tenant URL, enter the Revenue Grid organization URL from Step 1.

    ../../../../_images/EditNamedCredentialsAssignmentFull.webp
  9. Select Save.

Step 9: Add a new remote site#

  1. In the Quick Find field, enter Remote Site Settings, and open the page.

    ../../../../_images/RemoteSiteSettings.webp
  2. Select New Remote Site.

    ../../../../_images/NewRemoteSite.webp
  3. Fill in the required fields:

    • In the Remote Site Name, enter a recognizable name for the site.

    • In the Remote Site URL, enter the Revenue Grid organization URL from Step 1.

    • Select Active.

    ../../../../_images/RemoteSiteEdit.webp
  4. Click Save.

Result#

After you complete these steps, users assigned to the additional credentials will connect to the specified Revenue Grid organization. All other users will continue using the default organization configuration without changes.