The MSSQL Fulfillment Channel connector uses a Microsoft SQL Server database as a fulfillment channel for the app. It writes shipping requests and purchase orders into staging tables in your database and reads fulfillments, purchase orders, inventory, and products back into the app. The connector is in beta, and the Pipe17 support team helps you set it up.
With this connector, you can:
- Send shipping requests that are ready for fulfillment to your MSSQL staging tables every 15 minutes.
- Pull fulfillments and tracking numbers from your database into the app every 15 minutes.
- Send purchase orders to your database and pull processed purchase orders back into the app.
- Pull a full inventory snapshot every 15 minutes and your product catalog once a day.
- Create your warehouse locations in the app from the connector configuration.
Setup
Before you begin
- The connector turned on for your organization. This connector is in beta, so submit a support request to turn it on.
- A Microsoft SQL Server database that the app can reach over the internet. If your firewall only accepts connections from approved IP addresses, allow the Pipe17 addresses listed in Whitelisted IPs for Connectors.
- The server hostname or IP address, the TCP port (default
1433), and the database name. - A SQL Server authentication login (user name and password) for the app. The connector doesn't support Windows authentication.
- Someone who can create logins and grant permissions on the server, such as your database administrator.
- The shipping request staging tables (header and detail) in your database. If you plan to use purchase orders, you also need the purchase order staging tables. Pipe17 support confirms the table names and columns with you.
- If you plan to pull inventory or products, the SQL view that holds your inventory and item feed.
- Your warehouse location codes. The support team adds them to the connector configuration.
Prepare your SQL Server database
The app connects straight to your database, so your database administrator does these steps. You don't copy any keys from Microsoft.
- Make sure the server accepts SQL Server authentication. SQL Server logins work only when the server uses SQL Server and Windows Authentication mode (mixed mode).
- Create a SQL Server login for the app. In SQL Server Management Studio, expand the server, right-click Security, point to New, and select Login.... Select SQL Server authentication, and enter a strong password. Clear User must change password at next login. The app can't change the password, so the first connection fails if this option stays on. If you keep Enforce password expiration on, the connection stops working when the password expires. For details, see Microsoft's Create a login article.
- Map the login to a user in your database. In the database, right-click Security, point to New, and select User.... Select SQL user with login, and select the login you created. Set Default schema to the schema that holds the staging tables, usually
dbo. For details, see Microsoft's Create a database user article. - Grant the user these permissions, and nothing more:
Object Permissions Used for Shipping request header and detail staging tables SELECT,INSERT,DELETEWriting shipping requests, checking for duplicates, removing a partly written shipping request after an error, and reading fulfillments Purchase order header and detail staging tables SELECT,INSERT,DELETEPushing and pulling purchase orders The sales order, shipment, and package tables your fulfillment queries read SELECTPulling fulfillments and tracking numbers Inventory and product views SELECTPulling inventory and products - Check that each staging header table has a
RowIDidentity column. The app reads it back as the reference for each shipping request and purchase order. - Open the SQL Server port on your firewall to the Pipe17 addresses listed in Whitelisted IPs for Connectors. If you use a named instance, set it to listen on a fixed TCP port, because the app connects by host and port only.
- Make sure the server has a TLS certificate that the app can validate. The connection is encrypted by default, and a self-signed certificate fails validation.
Note: The default fulfillment queries read Sage ERP sales order and shipment tables. If your database uses other tables, ask Pipe17 support to set the Fulfillment List Query and Fulfillment Detail Query for your tables.
Connect in the app
- Navigate to Integrations in the app.
- Click Add Integration, and then select MSSQL Fulfillment Channel. The Connect MSSQL Fulfillment Channel pop-up opens.
- Enter your server hostname or IP address in the Server Host field, for example
db.example.com. - Enter the TCP port in the Port field. The default is
1433. - Enter the name of your database in the Database Name field.
- Enter the login name in the Username field.
- Enter the login password in the Password field.
- Leave Enable Encryption (SSL/TLS) on. This encrypts the connection and is on by default.
- Leave Trust Server Certificate off unless your server uses a self-signed certificate in a development or test environment.
- Click Connect.
- After you connect, toggle on the flows you want to use: Push shipping requests to MSSQL, Pull fulfillments from MSSQL, Push purchase orders to MSSQL, Pull purchase orders from MSSQL, Pull inventory from MSSQL, Pull products from MSSQL, and Pull locations. All flows are off by default. Turn on Pull locations before Pull inventory from MSSQL, because inventory is matched to locations by warehouse code.
The Connect pop-up also shows a link to request assistance. Use it if you want the support team to help you configure the connection, your staging table names, and your locations.
When you connect, the app checks that it can sign in to your database and that the shipping request staging tables exist. If a purchase order flow is on, it also checks the purchase order staging tables. If you turn on inventory or products, it also checks that the source view exists.
Note: If you click Add without credentials, the integration is added but doesn't sync until you enter the connection details on the Connection Details tab and save.
Confirm the connection
- On Integrations, check that the MSSQL Fulfillment Channel integration shows Connected and that its switch is on. If it shows Error or Not Configured, open it and read the error. Check the connection details, the firewall, and the login's permissions, and then save again.
- Turn on Pull locations, and save. The app runs every 15 minutes. Within about 15 minutes, check Locations for a location for each warehouse code. To learn more, see Using Locations.
- To test one shipping request, enter one order ID in Process only shipping requests for specific order IDs, turn on Push shipping requests to MSSQL, and save. The order's shipping request must be Ready for Fulfillment, routed to a location that uses this integration, and updated in the last 24 hours.
- Within about 15 minutes, check that the shipping request moved to Sent to Fulfillment, and ask your database administrator to confirm one header row and the detail rows in the staging tables. If it moved to Failed, see Troubleshooting.
- After the order ships in your system, turn on Pull fulfillments from MSSQL, and save. Within about 15 minutes, the fulfillment and tracking number appear on the order in the app.
- Clear Process only shipping requests for specific order IDs, and save, so that the app sends all shipping requests.
Settings
| Setting | Description | Options/Default |
|---|---|---|
| Push shipping requests to MSSQL | Writes shipping requests that are ready for fulfillment into your shipping request staging tables. | On/Off. Default: Off |
| Process only shipping requests for specific order IDs | Sends only the shipping requests for the order IDs you list that changed in the last 24 hours. Use this while testing. | Optional. Empty sends all |
| Pull fulfillments from MSSQL | Reads shipped orders, tracking numbers, and shipped quantities from your database. | On/Off. Default: Off |
| Fulfillment List Query | A custom SQL query that lists shipped orders. It must return TranNumber, ShopOrderId, and ShipDate. |
Optional. Empty uses the default query |
| Fulfillment Detail Query | A custom SQL query that returns the shipment details for one order, including tracking number, shipping method, line, and quantity. | Optional. Empty uses the default query |
| Push purchase orders to MSSQL | Writes purchase orders that are ready for fulfillment into your purchase order staging tables. | On/Off. Default: Off |
| Pull purchase orders from MSSQL | Reads approved or updated purchase orders from your purchase order staging tables. | On/Off. Default: Off |
| Purchase Order List Query | A custom SQL query that lists processed purchase orders. It must return TranNo, VendorID, Status, TranDate, and ProcessStatus. |
Optional. Empty uses the default query |
| Purchase Order Detail Query | A custom SQL query that returns the header and line details for one purchase order. | Optional. Empty uses the default query |
| Pull inventory from MSSQL | Reads a full stock snapshot from your inventory view. Inventory rows are matched to locations in the app by warehouse code, so set up locations first. | On/Off. Default: Off |
| Inventory Source View | The SQL view that holds your inventory feed. You can include the schema, for example dbo.MyInventoryView. |
Optional. Empty uses the default view |
| Inventory Locations | The warehouse codes to pull stock for, one per row. Add a code when you open a new warehouse or store. Enter your own codes, because the default list may not match your warehouses. | Optional. Empty uses the default list |
| Inventory Item Types | The item types to include, for example Finished Good. |
Optional. Empty uses the default list |
| Inventory Snapshot Query | A custom SQL query that returns the stock snapshot. It must return LocationID, SKU, OnHand, Committed, OnPO, OnTransfer, and Available, sorted by LocationID and SKU, and must include the $afterFilter placeholder. |
Optional. Empty uses the default query |
| Pull products from MSSQL | Reads your product catalog from your product view. Products in the app with the same SKU are updated. | On/Off. Default: Off |
| Product Source View | The SQL view that holds your product feed, optionally with the schema. | Optional. Empty uses the inventory source view |
| Product Item Types | The item types to include, for example Finished Good. |
Optional. Empty uses the default list |
| Product Snapshot Query | A custom SQL query that returns one row per SKU, sorted by SKU, and must include the $afterFilter placeholder. |
Optional. Empty uses the default query |
| Pull locations | Creates a location in the app for each warehouse in the connector configuration. The support team sets up this list for you. | On/Off. Default: Off |
Flows
| Flow | Direction | Notes |
|---|---|---|
| Shipping requests | Pipe17 → MSSQL | Runs every 15 minutes. Sends shipping requests that are Ready for Fulfillment and assigned to this connector. The app writes one header row and one detail row per line item. Accepted shipping requests move to Sent to Fulfillment. If a shipping request is already in the staging table, the app doesn’t write it again. If the database rejects it, the shipping request moves to Failed. |
| Fulfillments and tracking | MSSQL → Pipe17 | Runs every 15 minutes. Reads orders shipped since the last run (the first run looks back 14 days) and creates one fulfillment per tracking number. |
| Purchase orders | Pipe17 → MSSQL | Runs every 15 minutes. Sends purchase orders that are Ready for Fulfillment and assigned to this integration. Accepted purchase orders move to Sent to Fulfillment. If the database rejects one, it moves to Review Required. |
| Purchase orders | MSSQL → Pipe17 | Runs every 15 minutes. Reads purchase orders that your system has processed since the last run (the first run looks back 14 days). |
| Inventory | MSSQL → Pipe17 | Runs every 15 minutes. Reads a full snapshot of active, sellable items for the listed warehouse codes, including on hand, committed, on order, in transfer, and available quantities. Rows for warehouse codes that don’t match a location in the app are skipped. |
| Products | MSSQL → Pipe17 | Runs once a day. Reads one row per SKU. Products that haven’t changed aren’t updated. |
| Locations | Configuration → Pipe17 | Runs every 15 minutes. Creates locations from the warehouse list in the connector configuration. Locations that already exist are skipped. |
| Cancellations | Not supported | The connector doesn’t send cancellations. If you cancel a shipping request that is already in the staging table, cancel it in your system as well. |
Troubleshooting
-
The connection fails with "Staging tables not found", but the tables exist
SQL Server only shows a table to a user that has a permission on it. Grant the login's database userSELECT,INSERT, andDELETEon the staging tables, and then save the connection again. -
The connection times out
The app can't reach your server. Allow the Pipe17 IP addresses listed in Whitelisted IPs for Connectors on the SQL Server port. If you use a named instance, set it to a fixed TCP port and enter that port in Port. -
The connection fails with "Login failed for user"
Check the Username and Password. Also check that the server allows SQL Server authentication, that the login isn't set to change its password at next login, and that the password hasn't expired. -
Shipping requests move to Failed with "Invalid object name"
The staging tables are in a schema other than the login's default schema. Set the database user's default schema to the schema that holds the staging tables, usuallydbo. The connection fails when you click Connect
The app couldn’t sign in to your database. Check the Server Host, Port, Database Name, Username, and Password, and make sure your server accepts connections from the app. If the error mentions the certificate and your server uses a self-signed certificate in a test environment, turn on Trust Server Certificate.The connection fails with "Staging tables not found"
The app couldn’t find one or more staging tables in the database. Create the tables listed in the error, or ask the support team to update the table names in the connector configuration. If you turned on a purchase order flow, the purchase order staging tables must also exist.The connection fails with "source view not found"
The inventory or product view doesn’t exist in the database. Check Inventory Source View or Product Source View, including the schema name.A shipping request moved to Failed
The database rejected the rows, for example because a value is too long for its column, or the shipping request had no transaction number. Fix the data on the order, and then send the shipping request again. If the database was unreachable, the app retries on its next run instead.Inventory doesn’t update
Inventory is matched to locations in the app by warehouse code. Make sure Pull locations is on and the locations exist, and that each warehouse code is listed under Inventory Locations. To learn more, see Using Locations.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We’re here to help you succeed with your operations.
Comments
0 comments