How do I pull deal line items into automated emails in HubSpot?

JSitas
Participant

Hi @AnaZhukova,

I'm trying to pull Line Items into an auto email and am sending it via a Deal Base Workflow. I've created the custom module and used the code above but it does not seem to work on my tests? I see the use of deal.url & deal.order_id however my emails suggest these tokens don't exist...
Are these tokens outdated?Screenshot 2025-11-07 101529.png

Moderator note: I have moved your post for visibility. For reference, here is the thread where you posted: "Pulling in Deal Line items for automated emails".

0 Upvotes
1 Accepted solution
BérangèreL
Solution
Community Manager
Community Manager

Hi @JSitas and Happy Friday!

Thanks for reaching out to the HubSpot Community!

Here are similar threads that might help you:

- The solution from @DSummers9 on this post "Deal Email: "The token line_item doesn't exist.""
- The solution from @JPereira2 on this post "Integrating Line Item Properties in Emails"

Also, I'd love to put you in touch with our Top Experts: Hi @Brenner, @LouiseHare and @danmoyle do you have suggestions to help @JSitas, please?

Have a great weekend and thanks so much!
Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




View solution in original post

3 Replies 3
BérangèreL
Solution
Community Manager
Community Manager

Hi @JSitas and Happy Friday!

Thanks for reaching out to the HubSpot Community!

Here are similar threads that might help you:

- The solution from @DSummers9 on this post "Deal Email: "The token line_item doesn't exist.""
- The solution from @JPereira2 on this post "Integrating Line Item Properties in Emails"

Also, I'd love to put you in touch with our Top Experts: Hi @Brenner, @LouiseHare and @danmoyle do you have suggestions to help @JSitas, please?

Have a great weekend and thanks so much!
Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More




JSitas
Participant

Hello @BérangèreL ,

Thankyou so much for the guidance here, the suggested code structure by @JPereira2  worked for me.

BérangèreL
Community Manager
Community Manager

Hi @JSitas, Great to hear it worked! 🎉

Thanks for sharing your update, and shoutout to @JPereira2 for the solution.

If you need anything else, we're here to help! 🧡

Have a wonderful day!
Bérangère





loop


Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.

Learn More