Skip to main content
Skip table of contents

Setting Up Cloud Fax App for Salesforce

The Retarus Cloud Fax App for Salesforce app lets you manage fax campaigns and individual fax jobs directly in Salesforce. The setup process includes installing the package, activating the Lightning app, configuring authentication and endpoint settings, and assigning user permissions.

Prerequisites

  • Salesforce administrator rights

  • API credentials for Retarus Fax-for-Applications (including Reporting WebPush OAuth)

Installing the app

  1. Open the installation link provided by Retarus.

  2. Log in with your Salesforce credentials.

image-20250710-131724.png
  1. Choose the installation scope (e.g., Install for Admins Only or Install for All Users).

  2. Activate the following option:
    I acknowledge that I’m installing a Non-Salesforce Application that is not authorized for distribution as part of Salesforce’s AppExchange Partner Program.

image-20260112-153008.png
  1. Complete the installation and wait for it to finish.

Activating the app

  1. Go to Setup - Lightning App Builder.

  2. Locate Fax Campaign Management and click Edit.

image-20251013-112727.png
  1. Click Activation.

image-20251013-112921.png
  1. Choose whether to activate the app for administrators only or for all users, based on your rollout plan, and click Save.

image-20250710-131805.png
  1. Verify that the app appears in the App Launcher.

image-20250710-131824.png

Creating the External Client App

Next, you must create an External Client App in Salesforce. This app allows Retarus to send updates for fax jobs back to your Salesforce organization.

During this process, you assign an integration user. This user defines under which identity Retarus updates fax jobs and fax campaigns in Salesforce. All changes coming from Retarus are performed in the name of this user. The integration user must have full access to the following objects:

  • Cloud Fax Campaign

  • Fax Job

Creating and Configuring the External Client App

  1. Go to Setup - External Client App Manager, and select New External Client App.

image-20260113-161246.png
  1. Enter basic app details:

    • External Client App Name
      Enter any name that helps you identify the app.

    • API Name
      This field is generated automatically from the name. It cannot contain spaces or special characters.

    • Contact Email
      Enter any valid email address. This address is not expected to be used for communication.

    • Distribution State
      Select Local.

    • All other fields are optional and can be left as-is or filled in as needed.

  2. Configure API settings (OAuth).

    • Enable OAuth to display the available options.

    • Callback URL
      Enter any URL starting with https://.
      This value is not used by the Retarus integration but is required by Salesforce.

    • OAuth Scopes
      Select Manage user data via APIs (api).

    • Flow Enablement

      • Select Enable Client Credentials Flow.

      • Confirm the popup dialog.

    • Leave all remaining settings unchanged.

image-20260113-161803.png
  1. Select Create at the bottom of the page.

  2. Assign the Integration User.

    • Open the Policies tab of the newly created app.

    • Click Edit.

    • Expand OAuth Policies.

    • Select Enable Client Credentials Flow.

    • In the Run As field, enter the username of the integration user.

    • Save your changes.

image-20260113-162050.png
  1. Retrieve the Client ID and Client Secret.

    • Go to the Settings tab.

    • Expand OAuth Settings.

    • Select Consumer Key and Secret.

    • Confirm your identity when prompted.
      If you run into issues, try another browser or use incognito/private mode.
      -> Salesforce displays Consumer Key (Client ID) and Consumer Secret (Client Secret).

image-20260113-162236.png

Information to provide to Retarus

As part of the implementation process, certain information must be exchanged with the Retarus implementation team. These details are required to enable Push Reporting, which allows Retarus to send fax status updates (webhooks) to your Salesforce organization.

Provide the following information during the credential exchange to ensure that Push Reporting can be set up correctly:

  • Account / username
    The account identifier or username for the integration.

  • OAuth server
    The OAuth authorization server for authentication.

  • OAuth username
    The username to authenticate against the OAuth server.

  • OAuth password
    The password to authenticate against the OAuth server.

  • Webhook endpoint
    The Salesforce endpoint URL to which Push Reporting webhooks are sent.

  • Optional scope
    An OAuth scope, if required by your OAuth configuration.

  • Optional headers
    Any additional HTTP headers that must be included in webhook requests.

Configuring Retarus credentials

To allow Salesforce to send data to Retarus, you must store your Retarus Fax API credentials in Salesforce.

Updating the Named Credential

  1. Go to Setup - Named Credentials.

  2. From the list, select the Retarus API Credentials to open it and then click Edit.

  3. In the URL field, replace CUSTOMERNUMBER with your actual Retarus customer number.

image-20260114-100454.png
  1. Click Save.

Updating the External Credential

  1. Go to Setup - Named Credentials - External Credentials.

  2. From the list, select Retarus Integration.

image-20260114-102602.png
  1. In the Principals list, select Auth, and click Edit from the dropdown menu on the right.

image-20260114-103527.png
  1. Add the following four parameters exactly as listed below:

    • username
      Your Retarus API username.

    • password
      Your Retarus API password.

    • clientID
      The Client ID (Consumer Key) from the External Client App setup.

    • clientSecret
      The Client Secret (Consumer Secret) from the External Client App setup.

image-20260114-104017.png
  1. Click Save.

Assigning permissions to users

To use fax campaigns or send individual faxes in Salesforce, users must have the correct permissions. These permissions are provided through a predefined permission set named Cloud Fax User. You must assign this permission set to all users who should be allowed to use Cloud Fax features, such as fax campaigns or individual fax sending.

  1. Go to Setup - Permission Sets.

  2. From the list, select the Cloud Fax User permission set.

image-20251013-115352.png
  1. Click Manage Assignments.

image-20251013-115559.png
  1. Add users who should manage fax campaigns or send single faxes.

Sending through Flows or Apex

If you plan to trigger fax sending through Salesforce Flows or custom Apex code:

  • Create records for the following objects:

Object name

Description

Required fields

RETA_Fax_Campaign__c

Used to manage fax jobs, their progress, and larger fax campaigns.

Name
Campaign_Status__c

RETA_Fax_Job__c

Represents a single fax sent to one fax number.

Each RETA_Fax_Job__c record must be linked to a parent RETA_Fax_Campaign__c record.

Fax_Number__c
Sending_Status__c
Fax_Campaign__c

  • Upload the file you want to fax as a ContentDocument in Salesforce and associate it with the corresponding RETA_Fax_Campaign__c record.

After setup, users can open the Retarus Cloud Fax App for Salesforce app to create and send faxes, monitor delivery, and handle any failed jobs. See Sending Fax Campaigns for details.

Error handling when sending fax campaigns

When sending fax campaigns from the Cloud Fax Campaign detail page, you may encounter a situation where the campaign status remains In Progress for an extended period. This usually indicates that an error occurred while sending data to Retarus.

Common causes

Typical causes include:

  • The user who clicked Send Fax Jobs does not have the Cloud Fax User permission set assigned.

  • The credentials configured in the Named Credential or External Credential are not entered correctly.

Once the cause has been identified and corrected, reset the campaign status to Draft before attempting to send the campaign again.

Further troubleshooting

If the issue cannot be resolved using the steps above, you can use Salesforce logs to identify the root cause:

  1. If the affected user has access to the Developer Console, open it. Otherwise, enable debug logs for the corresponding user in the Salesforce Setup.

  2. Reset the fax campaign status to Draft and send the fax campaign again.

  3. Review the generated logs, either in the Developer Console or under Setup - Debug Logs.

  4. Look for a log entry with the FutureHandler operation. The error is very likely to occur in this context.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.