# Create Custom object records from Line Items on close won

**URL:** <https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** enterprise\
**Created:** [February 15, 2024, 11:48am UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231 "2024-02-15T11:48:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [February 15, 2024, 11:48am UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231/1 "2024-02-15T11:48:08Z")

</div>

Hi,

We have an Asset custom object.

In the deal we have the related line items.

When a deal is closed won - We want to loop on all related line items and for each line item we want to create a record of an Asset custom object. The custom object will be related to the Company for example

Is it possible to achieve with workflow or only with custom code?

Thanks!

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [February 15, 2024, 5:27pm UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231/2 "2024-02-15T17:27:42Z")

</div>

Hey @OBetzalel line items are a bit forgotten about in automation in HubSpot tbh.

You can however create a custom object record within a workflow, you could do this based on the deal however and then copy property values from the line-items into the custom object record.

It would be something like this:

 ![TomM2_0-1708017995313.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b76535e0359e29f9ad7224e299c6b33fefced166.png)

You could say create a custom object record when a deal is closed, then copy your line-item values into that associated object records too.

It might become a bit trickier if you’re creating multiple custom object records for a single deal or if you have multiple line items per deal. If this is the case you would need to look into an external integration or api to do this.

---

<div class="post-metadata">

**Author:** ![OBetzalel](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@OBetzalel](https://community.hubspot.com/u/OBetzalel)\
**Post date:** [February 18, 2024, 7:44am UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231/3 "2024-02-18T07:44:59Z")

</div>

@TomM2 Thanks Tom!

Does anyone know a 3rd party app to create renewal opp and creating custom objects records according to the line items that were added to the original opportunity?

Thanks.

---

<div class="post-metadata">

**Author:** ![DSaxman](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@DSaxman](https://community.hubspot.com/u/DSaxman)\
**Post date:** [August 19, 2024, 2:33pm UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231/4 "2024-08-19T14:33:36Z")

</div>

Hi @OBetzalel - did you ever find a solution to this? I have having the same issue. Thanks!

---

<div class="post-metadata">

**Author:** ![LevkaBrodersen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/levkabrodersen/32/63207_2.png) [@LevkaBrodersen](https://community.hubspot.com/u/LevkaBrodersen)\
**Post date:** [April 11, 2025, 10:48am UTC](https://community.hubspot.com/t/create-custom-object-records-from-line-items-on-close-won/100231/5 "2025-04-11T10:48:20Z")

</div>

Hi, I am still looking for a solution.  
For us it’s actually the case that we want to create a custom object for each line item that is attached to the deal

"It might get a bit tricky if you create multiple custom object records for a single deal or if you have multiple line items per deal. In this case you would need to look at an external integration or API to do this. "

Has anyone found a solution to this?
