Skip to main content
Question

Help Required with Looping Line Items - Creating a Sale Order in Cin7 Core from a HubSpot Deal


So as the title suggests, I’m trying to create a Sales Order in Cin7 Core when a Deal is created in a certain pipeline and stage in HubSpot.

I’m 90% there, in that, when there was only 1 line item, the order was created perfectly.

The issue arises when there are multiple line items in the Deal.  There are two different issues I experience when I apply different approaches:

  1. When I remove the Filter (stage 8), then the Zap creates separate Sales Orders for each line item.
  2. When I use the Filter to close the loop, only 1 of the line items is picked up in the Sales Order.

I’m new to Zapier and Looping in particular, so any help or advice would be gratefully received!  I assume it’s something simple like a step in the wrong place but I’m open to any feedback.  The Delay step is only there as a test to see if it helped (it didn’t).

Thanks!

 

Did this topic help you find an answer to your question?

6 replies

JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2350 replies
  • February 28, 2025

Hi ​@DarrenRodman,

 

Welcome to the Community.

 

You'll need to structure your Zap carefully to create a Sales Order in Cin7 Core with multiple line items from a HubSpot Deal. First, check if a Sales Order exists; if not, create one. Then, retrieve the deal's line items and use a looping step (often requiring JavaScript) to add each item to the order. If coding isn't an option, hiring a Zapier Expert may help.

 

I hope this helps. Let us know if you need further assistance.


  • Author
  • Beginner
  • 3 replies
  • February 28, 2025
JammerS wrote:

Hi ​@DarrenRodman,

 

Welcome to the Community.

 

You'll need to structure your Zap carefully to create a Sales Order in Cin7 Core with multiple line items from a HubSpot Deal. First, check if a Sales Order exists; if not, create one. Then, retrieve the deal's line items and use a looping step (often requiring JavaScript) to add each item to the order. If coding isn't an option, hiring a Zapier Expert may help.

 

I hope this helps. Let us know if you need further assistance.

Hi JammerS,

Thanks for coming back to me on this.  As you can see from the screenshots above, I’ve already included a looping step, and that’s the part I believe I need help with.

Many thanks,

Darren


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6395 replies
  • March 3, 2025

Hi ​@DarrenRodman,

Could you please send a screenshot of the “CONFIGURE” section of the Filter, Looping, and Create Sale step? This will help me identify if the setup correct.

Please don't include personal information in the screenshot, or be sure blur out any personal information.

Thank you!


Hi ​@ken.a,

Here you go - sorry, lots of screenshots on the ‘Create Sale’ step!

Thanks very much,

Darren

 

 


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6395 replies
  • March 4, 2025

Hi ​@DarrenRodman,

Thanks for the screenshots!

It looks like you did not map the output of the Looping step to your Cin7 Core Inventory step. You’d need to map the output of the looping step to the action for the looping function to work.

We have instructions on how to utilize Looping by Zapier here: https://help.zapier.com/hc/en-us/articles/8496106701453-Loop-your-Zap-actions

Hopefully, this helps.


  • Author
  • Beginner
  • 3 replies
  • March 4, 2025

Hi ​@ken.a,

Forgive my ignorance, but what does mapping the Looping output to the ‘Create Sale’ step look like in real terms here?

Guessing it means I need to link the below to somewhere else other than step 7 to get the looped line items?

If you can advise me on the specifics that would be appreciated!

Many thanks,
Darren