# Linnworks to Salesforce Integration

## Introduction

The **Linnworks to Salesforce Integration Template** in DBSync Cloud Workflow is designed to facilitate the seamless synchronization of data between Linnworks, an inventory and order management system, and Salesforce, a leading customer relationship management (CRM) platform. This integration enables businesses to automate the flow of critical data, ensuring consistency and accuracy across both systems.

### **Key Features**

* **Order Synchronization:** Automatically transfer orders from Linnworks to Salesforce, allowing sales teams to have real-time visibility into order statuses.
* **Product Synchronization:** Keep product information consistent between Linnworks and Salesforce, ensuring that sales and inventory data are aligned.
* **Customer Data Integration:** Sync customer details between the two platforms to maintain up-to-date and accurate customer records.

By implementing this template, organizations can reduce manual data entry, minimize errors, and enhance operational efficiency by ensuring that both systems reflect the most current information.

### Use Cases

The integration template is particularly beneficial in the following scenarios:

* **Unified Customer View:** Sales and support teams can access comprehensive customer information, including order history and product details, directly within Salesforce, leading to improved customer service and personalized sales strategies.
* **Inventory Management:** Real-time synchronization of product data helps prevent overselling and stock discrepancies by ensuring that inventory levels are accurately reflected in both systems.
* **Order Processing Efficiency:** Automating the transfer of orders from Linnworks to Salesforce streamlines the order fulfillment process, reducing delays and enhancing customer satisfaction.
* **Sales Reporting:** Consolidated data allows for more accurate sales forecasting and performance analysis, aiding in strategic decision-making.

### Data Flow

Data flow of between Linnworks & Salesforce integration is shown in the table below.

<table><thead><tr><th valign="top">Linnworks</th><th valign="top">Salesforce</th></tr></thead><tbody><tr><td valign="top">Orders</td><td valign="top">Opportunities</td></tr><tr><td valign="top">Products</td><td valign="top">Products</td></tr><tr><td valign="top">Customers</td><td valign="top">Accounts/Contacts</td></tr></tbody></table>

## Setting Up the Template

To set up the Linnworks to Salesforce integration template, follow these steps.

### Prerequisites

Ensure you have the following:

* **DBSync Account:** An active DBSync account with access to the Cloud Workflow platform.
* **Linnworks Credentials:** Valid Linnworks login credentials with the necessary permissions to access API services.

{% hint style="info" %}
Click [here](https://docs.mydbsync.com/cloud-workflow/connectors/linnworks/creating-the-dbsync-application-on-linnworks-developer-instance) to know more about creating the DBsync application on Linnworks Developer instance.
{% endhint %}

* **Salesforce Credentials:** Salesforce login credentials with administrative privileges to install packages and configure integrations.

## Step-by-Step Setup

#### **Step 1: Import the Integration Template**

1. From the **Dashboard**, click on **Add Template**.

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2F5aSD8ySKxjtOpNQwqgG9%2FLinnworks%20to%20SF%200.png?alt=media&#x26;token=b59b4b80-e6af-45d2-b16f-1a2c61e0f940" alt=""><figcaption></figcaption></figure>

2. Browse and select the **Linnworks to Salesforce Integration** template.
3. Click **Import** to add the template to your project.
4. Navigate to the **Projects** section and select the imported template.
5. Click on **Setup** to launch the configuration wizard.

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2FxSjC1DjVxif8Swer082h%2FLNW%20-%20SF%201.png?alt=media&#x26;token=59b532d3-2da0-41b1-a1d7-d184b27d74d0" alt=""><figcaption></figcaption></figure>

#### **Step 2: Add the Linnworks & Salesforce Connector**

6. In the **Connect** **tab**, login to your Linnworks application connector using your credentials.
7. Click **Test Connection** to verify connectivity. Once verified, click **Save** to store the connector configuration.
8. Next, login to your Salesforce application connector using your credentials.
9. Click **Test Connection** to ensure successful authentication. Once verified, click **Save** to store the connector configuration.

#### Step 3: Configure Integration Settings

10. In the **Setup tab**, map the Linnworks data fields to the corresponding Salesforce objects. For example:

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2FHSF8a8Vfo7oglJywoPhB%2FLinnworks%20to%20SF1.png?alt=media&#x26;token=36817217-8efc-41d4-baac-126be0172d2b" alt=""><figcaption></figcaption></figure>

* **Linnworks Orders** → **Salesforce Opportunities**
* **Linnworks Products** → **Salesforce Products**
* **Linnworks Customers** → **Salesforce Accounts/Contacts**

11. Review and adjust any default mappings as necessary to align with your business processes and save the configurations.
12. In the **Run tab**, click **Next** and click **Run** to complete the Integration.

#### **Step 4: Set Up Data Synchronization Schedule**

In the **Schedule** tab, you can set up an integration schedule for each workflow you wish to automate.

13. Navigate to the **Schedule tab** to set up scheduling parameters for automated integration between Linnworks and Salesforce.
14. Specify different intervals such as minutes, hours, days, or weeks to customize the schedule as needed.

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2FKJl8u9ZCaGCPy2F27o2r%2FShipStation%20to%20QBO2.png?alt=media&#x26;token=8fbfb296-336e-4e0b-a626-703d8a49c2ef" alt=""><figcaption></figcaption></figure>

### Choosing the Right Options in the Dropdowns

During the configuration process, you'll encounter various dropdown menus that require careful selection to ensure the integration functions as intended:

* **Transaction Types:** When mapping orders, choose the appropriate Salesforce object that corresponds to Linnworks orders. For instance, decide whether Linnworks orders should be created as **Opportunities** or **Orders** in Salesforce.
* **Field Mappings:** In dropdowns where you map Linnworks fields to Salesforce fields, ensure that the data types are compatible. For example, map Linnworks **Order ID** to Salesforce **Opportunity Name** or **Order Number**.
* **Synchronization Direction:** Determine the direction of data flow for each entity:
  * **Unidirectional:** Data flows from Linnworks to Salesforce or vice versa.
  * **Bidirectional:** Data is synchronized both ways, maintaining consistency across platforms.

Selecting the correct options is crucial for the integration to reflect your business operations accurately.

### Running the Synchronization

After completing the setup and configuration, execute the synchronization process:

1. **Manual Sync**
   * Navigate to the **Projects** section in DBSync.
   * Select the **Linnworks to Salesforce Integration** project.
   * In the **Tasks** tab, click on **Run** for the desired workflow to initiate immediate synchronization.
   * Monitor the process in the **Logs** section to ensure data is transferring correctly and to identify any potential issues.
2. **Automated Sync**
   * With schedules defined during setup, the system will automatically execute synchronizations at specified intervals.
   * Regularly review the **Logs** to monitor the health and performance of automated syncs.

### Monitoring and Troubleshooting

* **Logs:** Regularly check the **Logs** section in DBSync for any errors or warnings. This practice helps in early detection and resolution of issues.
* **Error Handling:** If errors occur, review the error messages to understand the cause. Common issues may include authentication failures, API limits, or data mapping errors.
* **Support:** For unresolved issues, consult the DBSync documentation or contact DBSync support for assistance.

By following this guide, you can effectively set up and manage the integration between Linnworks and Salesforce using DBSync Cloud Workflow. This integration will enhance your operational efficiency by ensuring that critical business data is consistently and accurately synchronized between your inventory management and CRM systems.
