Passing basket SKUs and branch choice into the CRM

When online orders reach the CRM as flat text blocks, sales reps waste hours rekeying SKUs. Here is how to map ecommerce line items to custom objects.

A trade customer logs into your portal, carefully selects five different product variations, specifies their required delivery branch, and submits a request for a commercial quote.

When the alert hits your sales team, the sales representative opens the CRM to view the request. Instead of seeing a structured, itemised list, they see a massive, unformatted block of text crammed into the \"Notes\" field. The product codes, quantities, and delivery instructions are mashed together in a comma-separated paragraph.

To process the quote, the sales rep has to open a blank invoice screen and spend the next five minutes manually retyping the SKUs they squint at on the CRM screen.

The integration technically worked, because the data moved from the website to the CRM. But commercially, the integration is a failure. By destroying the structure of the data during transit, you have forced your highest-paid staff to become manual data-entry clerks.

The problem with flattening the array

When an ecommerce platform (like Magento, Shopify, or a custom portal) packages an order, it structures the data. It sends the customer details as one set of fields, the basket total as another, and the actual products as an \"array\", a list containing multiple distinct line items.

Most basic integrations fail precisely at this array.

When a standard connector pushes the data into HubSpot or Salesforce, it often lacks the logic to handle a one-to-many relationship (one deal containing many products). Taking the easy route, the connector simply flattens the array. It grabs all the SKUs, prices, and quantities, squashes them into a single string of text, and dumps them into a basic text box on the CRM deal record.

This breaks the data. Once SKUs are trapped inside a text block, the CRM can no longer understand them. You cannot run a report to ask the CRM, \"Show me all customers who requested a quote for SKU-123.\" You cannot trigger an automation based on a specific product category. The data is visible to the human eye, but it is invisible to the database.

Worked scenario: the cost of manual rekeying

Say a B2B supplier processes 400 wholesale orders or complex quote requests a month through their website. Each request contains an average of five distinct SKUs with specific trade pricing.

Here is what happens when that data is flattened versus when it is structurally mapped (using illustrative figures to show the mechanics):

Integration MethodRep Time per OrderMonthly Admin Hours (400 orders)Commercial Cost (£25/hr)Data Quality Outcome
Flat Text Block Mapping4 minutes to rekey 5 SKUs26.6 hours£665 / monthHigh risk of manual typo on SKUs or pricing
Structured Line Item Object Mapping0 minutes (instant sync)0 hours£0Perfect 1:1 match with ecommerce database
Operational DifferenceManual data entry creates frictionSaves 320 hours annuallySaves £8,000 annuallyEnables accurate cross-selling reports

If you flatten the array, you introduce human error. When a rep rekeys fifty SKUs a day, they will eventually type a 6 instead of an 8, resulting in the warehouse dispatching the wrong part. By mapping the payload correctly, you eliminate the manual work, save thousands of pounds in administrative time, and guarantee absolute accuracy.

Diagnostic patterns of broken data mapping

When your integrations flatten structured data, the operational friction is immediate and obvious:

What your systems showWhat is happening technically underneathCommercial consequence
Sales reps retype web orders into the ERP to generate an invoiceThe CRM integration mapped the basket array into a single text fieldExpensive sales hours are wasted on pure administrative data entry
Marketing cannot build a list of customers who bought a specific productProducts are not stored as distinct objects in the CRM databaseCross-sell and up-sell campaigns are impossible to automate
The CRM reports total deal value, but product margins are invisibleThe integration only synced the basket total, not the individual line itemsThe business cannot see which products are driving pipeline profitability
Delivery instructions are missed on complex ordersBranch preferences were buried at the end of a truncated note fieldOrders are shipped to the wrong regional location

Building structured payload mapping

To fix this, you must change how the middleware handles the incoming data. You cannot rely on a simple \"Create Deal\" action. You must architect the integration to respect the one-to-many relationship.

Modern enterprise CRMs support native Line Item objects or Custom Objects specifically for this purpose.

When the ecommerce webhook fires, your integration tool (or API script) must catch the payload and execute a sequence. First, it creates the primary Deal record, logging the total value and the associated Company.

Second, the integration executes a \"loop\". It looks at the basket array and iterates through every item. For the first item, it sends a distinct POST request to the CRM: \"Create a Line Item object for SKU-123 with a quantity of two, and attach it to the Deal we just created.\" It then loops to the second item and repeats the process.

Finally, it maps the metadata. If the trade buyer selected a specific delivery branch from a dropdown, that value is not stuffed into a note. It is mapped to a dedicated custom property on the Deal record called Requested_Branch.

When the sales representative opens the CRM, the view is immaculate. The deal total is accurate. The requested branch is visible in a clear property field. The products are neatly listed in a dedicated table, allowing the rep to convert the entire request into a formal invoice with a single click.

Structuring your data in transit requires a few extra hours of API configuration. The payoff is a sales team that actually sells, rather than typing out SKUs they can already read.

Frequently asked questions

Can Zapier or Make handle array loops for line items?

Yes. Both Zapier (using the Line Item to Text formatter or Looping by Zapier) and Make (using the Iterator module) can loop through an incoming JSON array and process multiple CRM actions for a single order. However, getting the loop to correctly associate the newly created line items with the parent deal requires precise ID mapping in the workflow.

Why do some default Shopify-to-CRM connectors fail to sync products?

Many off-the-shelf connectors prioritize speed of setup over depth of data. They are built for basic B2C environments where the goal is simply to log the customer's email and the total order value. They intentionally omit the complex API calls required to sync individual line items to avoid hitting CRM API rate limits.

What happens if the CRM does not have the SKU in its product library?

If the integration attempts to create a line item for a SKU that the CRM does not recognise, the API call will usually fail. To prevent this, the integration must either include a step that creates new products dynamically on the fly, or the business must maintain a strict, synced master product catalogue between the ecommerce platform and the CRM.

Should we sync zero-value items like free samples or brochures?

Yes, absolutely. In B2B environments, tracking which clients requested technical brochures or free samples is critical intent data for the sales team. Because the line items are structured, you can easily filter zero-value items out of your revenue reports while still preserving them on the activity timeline for the account manager.

How do we handle custom product configurations or bespoke dimensions?

When an ecommerce item includes bespoke configurations (like custom dimensions entered into a text box), the integration should map the base SKU to the CRM product, and map the bespoke configuration details into dedicated Line Item property fields (e.g., Custom_Length). This keeps the base product library clean while preserving the unique order details.

Related reading