> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/blueprints/patchworks-blueprints/shopify-and-virtualstock-supplier/installation-guide-shopify-and-virtualstock-supplier/stage-6-review-and-test-the-fulfillments-process-flow-shopify-to-virtualstock-supplier.md).

# Stage 6: Review & test the Fulfillments process flow (Shopify to Virtualstock Supplier)

## Introduction

In this stage you will access the *\[\[Fulfillments]] Virtualstock >> Shopify* process flow.

This flow assumes that the sales order is now in *Shopify*, and has been picked, packed, and shipped by the warehouse (with a tracking number). Now, Patchworks picks up any shipped or partially shipped orders from *Shopify*, sending tracking IDs and expected delivery dates to *Virtualstock Supplier*.

The process flow is pre-configured with all required settings, including any connector instances you defined as part of the [installation stage](/product-documentation/blueprints/patchworks-blueprints/shopify-and-virtualstock-supplier/installation-guide-shopify-and-virtualstock-supplier/stage-3-define-instances-and-install-the-app-shopify-and-virtualstock-supplier.md). On this page, we guide you through recommended checks so you can ensure the flow meets your requirements.

## The steps

**Step 1**\
Select *process flows* > *process* from the left-hand navigation menu (or click [here](https://app.wearepatchworks.com/flows)). Your process flow list is displayed - for example:

<figure><img src="/files/nSFe8Gf7nxa7lsMylxKF" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you've used Patchworks before installing the *Shopify & Virtualstock Supplie*r blueprint, you might see more process flows than the three shown here.
{% endhint %}

**Step 2**\
Click the *\[\[Fulfillments]] Virtualstock >> Shopify* entry to open the process flow in edit mode.

**Step 3**\
Access settings for the [trigger shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-schedule.md) and edit the default schedule to reflect the frequency at which you want this process flow to run:

<div align="left"><figure><img src="/files/1X44eMHEwgpRnschwaTn" alt="" width="353"><figcaption></figcaption></figure></div>

{% hint style="info" %}
The default, hourly schedule is recommended but if you change this setting, be sure to check the `updated_at_min` parameter in the connector shape to align with this (see next step). For guidance on defining trigger schedules, please see our [Trigger shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape/trigger-shape-schedule.md) page.
{% endhint %}

**Step 4**\
Access settings for the first connector shape (Shopify) and update parameter values:

<div align="left"><figure><img src="/files/WeP3styQsGdJ0LwInKzl" alt="" width="354"><figcaption></figcaption></figure></div>

These are parameters associated with Shopify's *Retrieve a list of orders* endpoint - they determine which orders are retrieved.

{% hint style="info" %}
To be retrieved, an order must match ALL defined parameters.
{% endhint %}

Click the edit icon associated with each parameter and set it as required. Default settings are:

| Parameter            | Default setting                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| created\_at\_min     | Retrieves any orders created in the last `10 days`.                                                                                                                                                                                                                                                                                                                                           |
| updated\_at\_min     | <p>Retrieves any orders updated in the last <code>1 hour</code>. So, we are retrieving orders <em>created</em> in the last 10 days (see above) but ONLY if they have been <em>updated</em> in the last hour.</p><p>This parameter is set on the basis that the process flow runs every hour - if you changed your schedule frequency in Step 3, you should update this value accordingly.</p> |
| financial\_status    | Retrieves any orders with a financial status of `paid`.                                                                                                                                                                                                                                                                                                                                       |
| status               | Retrieves any orders with a status of `any`.                                                                                                                                                                                                                                                                                                                                                  |
| fullfillment\_status | Retrieves any orders with a fulfillment status of `shipped,partial` (covering cases where complete orders are shipped and where partial orders have been shipped).                                                                                                                                                                                                                            |

**Step 5**\
Access settings for the [map shape](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/map-shape.md) and scan down the list to ensure that the default settings meet your requirements. Here we are mapping FROM *Shopify* TO *Virtualstock Supplier.*

Generally, default mappings do not need to be changed however, the following fields should be checked with particular care:

<table><thead><tr><th width="312">Field</th><th>Notes</th></tr></thead><tbody><tr><td><code>tracking_company</code> > <code>carrier</code></td><td>This field mapping uses a cross-reference-lookup transform function to convert <em>Shopify</em> tracking company values to <em>Virtualstock Supplier</em> carrier values. Make sure that your <a href="/pages/tubsOpI5uT37oJDkTZbf">Carrier Mapping cross-reference lookup table</a> has been updated accordingly.</td></tr><tr><td><code>supplier_dispatch_date</code></td><td>No checks/changes are required but it's worth noting that the <em>Virtualstock Supplier</em> <code>supplier_dispatch_date</code> is set to the Shopify fulfillment <code>created_at date</code>.</td></tr><tr><td><code>supplier_delivery_date</code></td><td><p>The supplier delivery date is calculated using a custom dynamic date transform function. The default is <code>3 days</code> on from Shopify's fullfillment <code>created_at</code> date. If required, you can edit this transform function and change the number of days used for this calculation.</p><p>For more information please see our <a href="/pages/8jQ9rfGTyEmEhuTPTJHX">Working with field transformations</a> page.</p></td></tr></tbody></table>

{% hint style="info" %}
It should not be necessary to map additional fields here.
{% endhint %}

**Step 6**\
Access settings for the *Virtualstock Supplier* connector shape and double-check that the *source instance* is for a sandbox environment - for example:

<figure><img src="/files/YG3tOv4InRfajihf1Xcs" alt=""><figcaption></figcaption></figure>

**Step 7**\
When you're satisfied that the flow is ready to test, click the *initialise flow* button from the actions bar:

<div align="left"><figure><img src="/files/qe3hO1mCz9fYkadwgiM6" alt="" width="362"><figcaption></figcaption></figure></div>

The process flow should run and complete successfully. Check that the outcome is as expected in *Shopify* and in *Virtualstock Supplier*.

**Step 8**\
Go to the [next stage](/product-documentation/blueprints/patchworks-blueprints/shopify-and-virtualstock-supplier/installation-guide-shopify-and-virtualstock-supplier/stage-7-review-and-test-the-inventory-process-flow-shopify-to-virtualstock-supplier.md).
