parcelLab Customer Service for SFSC Integration Guide
This tutorial describes how to install and configure the parcelLab Customer Service Integration for Salesforce Service Cloud (SFSC) to display order and tracking data from parcelLab.
Overview
The parcelLab Customer Service Integration for Salesforce Service Cloud (SFSC) enables your customer service agents to answer delivery-related questions faster. The app enables viewing of all relevant tracking information in real time for orders and can be added to any object within your Service Console (for example: Account, Case, Order).
In this tutorial, you will learn:
Requirements
Before you start, ensure the following prerequisites are met:
SFSC
Admin user access
parcelLab
Account with tracking data enabled
One of the following:
SSO for parcelLab App access
One user’s login credentials for parcelLab App access
Non-encoded API token with
SalesforcescopeLink to install the parcelLab app in Salesforce
Installing the parcelLab Customer Service Integration for SFSC
This section describes how you can install the parcelLab Customer Service Integration for SFSC.
To install the app:
Log in to your Salesforce account as an admin user.
Open the link you received from your parcelLab representative.
Select the level of access (for example: Install for all users). This permission provides access to the app page in Salesforce, which contains details about how to generate new API tokens. It does not control permissions for accessing and using the app after it has been added to an object.
Click Install. After the installation is complete, a success message will display.

You can find the installed parcelLab app in your Salesforce account under Setup > Platform Tools > Apps > Packaging > Installed Packages.

Configuring the parcelLab Customer Service Integration for SFSC
This section describes how you can configure the parcelLab Customer Service Integration for SFSC after it has been successfully installed.
Defining Credentials for Displaying General App Content
To configure credentials that will enable the display of general app content, specify authentication settings in Salesforce as follows:
Click on the Setup icon on the top right of your Service Console.

The Setup Menu will display.

Click Setup. Setup Home opens in a new browser tab.
In the search field, enter “Named Credentials”.

In the dropdown menu, select the setup option Named Credentials.
The Named Credentials list page will display.

Click New.

The configuration page for app credentials will display.

In the Label field, enter a label that will be used to identify the API credentials (for example: Company_UK).
If you have multiple parcelLab accounts, the label should be descriptive as you will need to reference it during additional configurations.
The Name field is automatically filled after a label has been entered in the Label field.
In the URL field, enter https://api.parcellab.com.
For the Identity Type, select Named Principal.
For the Authentication Protocol, select Password Authentication.
Text fields for Username and Password will display.
In the Username field, enter your parcelLab user ID.
The parcelLab user ID can be requested from your parcelLab representative or retrieved from the parcelLab App under Admin > Accounts.
In the Password field, enter your non-encoded parcelLab token.
The token can be requested from your parcelLab representative or generated in the parcelLab App under Admin > API Tokens.
Click Save. The New Named Credential is saved.

Configuring the Display of a Link to the parcelLab App
To display a link to the parcelLab App:
In Named Credentials, click New.

The configuration page for app credentials will display.

In the Label field, enter the label that was used in the initial configuration (for example: Company_UK) and add “_Magic”.
This identifies that the app that is configured for the UK account should display a link to the parcelLab App.
Following our example, the label entered in this step will be “Company_UK_Magic”.
In the URL field, enter https://app.parcellab.com.
For Identity Type, select Named Principal.
For Authentication Protocol, select Password Authentication.
Text fields for Username and Password will display.
In the Username field, enter the email address of a parcelLab App user.
In the Password field, enter the user’s password.
Click Save. The New Named Credential is saved.

After the app configuration is complete, you can add the lightning component to any object within a page layout, so your customer service agents can access it from your Service Console.
Configuring the Necessary Fields for Displaying Order Data
Before adding the parcelLab app to the page layout where you intend to use it, you need to define the following fields in the object’s details:
A field for the parcelLab credentials
A field for the order ID
A field for the user’s email address or any other alternative field you prefer to identify orders by
The credentials and alternative fields are mandatory to retrieve data in the parcelLab app directly. The order ID field is not mandatory, but it is the most common way to identify an order.
Required User Permissions
Users who need to use the parcelLab app in Salesforce (for example: your customer service agents) must have field-level access to all three fields in the object. Object-level access is not sufficient for accessing and using the parcelLab app.
It is recommended to also assign the permission set included in the app (that is: ParcelLab_User) to all users who need to use the parcelLab app in Salesforce.
Adding the parcelLab App to a Page Layout
To add the parcelLab App to a page layout:
View a record detail page for the object you would like to add the lightning component to.
Click on the Setup icon on the top right of the record detail page to open the page layout editor.

The Setup Menu will display.

Click Edit Page.
The page layout editor opens with a list of components displayed on the left-hand side of the page.
In the components list, enter “parcelLab” into the search field or scroll through the components list until you see the parcelLab component under Custom - Managed.

Drag the component to where you want to place it on the page.
When the component is added to the page, the component configuration will display on the right-hand side of the page layout editor.

Configure the component by setting the following fields:
For Named Credentials field name, enter the API field name of the field used to identify your parcelLab API credentials.
For Order field name, enter the API field name of the field that contains the order ID used in parcelLab.
For Alternative search field name, enter the API field name of the field you are using in your pages to capture the user’s email address, or any other order attribute by which you can identify an order. This must be an attribute that is associated with the order ID in the parcelLab system within a limited set of fields. For more information please refer to the section on using the search function.

Click Save. The component is added to the page layout.
When the app has been successfully added to the page layout, the component will automatically load the order information when a record detail page is viewed.
If you are unable to locate the order ID field, or experience issues when configuring the lightning component, please contact us by filling in our contact form.
Additional Configurations
Set all different accounts as separate Named Credentials. The correct parcelLab account credentials are retrieved using a formula you need to define.
Create a formula by navigating to Setup > Object Manager > Order (or any other object you want to place the app) > Fields & Relationships.
Click New to create a new custom field.

Select Formula as the Data Type.

Click Next.
In the Field Label field, enter a label for the formula.
Select Text as the Formula Return Type.
Click Next.
Insert the formula to define the parcelLab account name to be returned.
Example formula:
CASE(Country__c,"DE", "parcellab DE", "AT", "parcellab AT", "No parcellab Account")In this example formula, all German orders (where the value of the field Country is DE) use the parcelLab DE account (set as the label within the credentials) and all Austrian orders use the parcelLab AT account.
Click Save.
Your formula is saved.
In the second column of Fields & Relationships, find the formula’s Field Name and copy it.
In the page layout editor, open the page that contains the parcelLab component.
Click on the parcelLab component.

The component configuration opens on the right-hand side of the page.

Under Named Credentials field name, enter the formula’s field name.
Click Save. The app is configured for multiple parcelLab accounts.
Last updated
Was this helpful?



