<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Line Items on Manually Signed Quotes in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1059530#M77624</link>
    <description>&lt;P&gt;Following up here after I spent sometime with internal HubSpot engineers and technical resources, just so there's a record of what the outcome is, in case someone else comes along and is looking for this answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I experienced is expected behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This comes down to how HubSpot treats line items and their relationship between deals and quotes. Here's the flow: line items get added to a deal, a quote is created. those line items are copied to the quote. the deal's original line items are deleted and replaced with copies from quote. Each new quote that is generated on a deal will delete the deal's line items, other quote's line items, and the new quote is now the source of truth on which line items should be on the deal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you're tracking line item inventory and need access to the historical data to find the deltas for the math part of inventory tracking, you're going to need an external database to store the line item history.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do change orders on a new deal if the original deal's quote is signed.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 23:41:36 GMT</pubDate>
    <dc:creator>Bortami</dc:creator>
    <dc:date>2024-10-23T23:41:36Z</dc:date>
    <item>
      <title>Line Items on Manually Signed Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1048172#M77040</link>
      <description>&lt;P&gt;I am doing a GraphQL call to get a quote's line items, and the line items of all quotes associated to the original quote's deal. I'm working on an inventory management solution. Each deal can have multiple quotes, which is one of my underlying process issues. This blocker I'm encountering is that when a deal is manually signed it loses all of it's line items.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone explain why a manually signed quote loses all its associations to line items?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the data I'm getting back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;  "data": {
    "CRM": {
      "quote": {
        "associations": {
          "deal_collection__primary": {
            "items": [
              {
                "associations": {
                  "quote_collection__primary": {
                    "items": [
                      {
                        "hs_object_id": 768853130,
                        "hs_sign_status": {
                          "label": "Quote has been manually signed (via marked as sign feature)",
                          "value": "MANUALLY_SIGNED"
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "associations": {
                          "line_item_collection__primary": {
                            "items": []
                          }
                        }
                      },
                      {
                        "hs_object_id": 770680221,
                        "hs_sign_status": {
                          "label": "Quote has completed esign process",
                          "value": "ESIGN_COMPLETED"
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "associations": {
                          "line_item_collection__primary": {
                            "items": [
                              {
                                "name": "14963999249 - Test Product Type",
                                "quantity": 2
                              },
                              {
                                "name": "15129201267 - Test Product #1",
                                "quantity": 2
                              },
                              {
                                "name": "15129201267 - Test Product #3",
                                "quantity": 1
                              },
                              {
                                "name": "14963999249 - Test Product Type #2",
                                "quantity": 1
                              },
                              {
                                "name": "14899564042 - TEST5",
                                "quantity": 1
                              }
                            ]
                          }
                        }
                      },
                      {
                        "hs_object_id": 781364256,
                        "hs_sign_status": {
                          "label": "Quote has been manually signed (via marked as sign feature)",
                          "value": "MANUALLY_SIGNED"
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "associations": {
                          "line_item_collection__primary": {
                            "items": []
                          }
                        }
                      },
                      {
                        "hs_object_id": 788285090,
                        "hs_sign_status": null,
                        "hs_status": {
                          "label": "Draft",
                          "value": "DRAFT"
                        },
                        "associations": {
                          "line_item_collection__primary": {
                            "items": [
                              {
                                "name": "14899564042 - TEST5",
                                "quantity": 1
                              },
                              {
                                "name": "15129201267 - Test Product #3",
                                "quantity": 1
                              },
                              {
                                "name": "14963999249 - Test Product Type #2",
                                "quantity": 2
                              },
                              {
                                "name": "15129201267 - Test Product #3",
                                "quantity": 2
                              },
                              {
                                "name": "14963999249 - Test Product Type #2",
                                "quantity": 1
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                }
              }
            ]
          },
          "line_item_collection__primary": {
            "items": []
          }
        }
      }
    }
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 02:23:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1048172#M77040</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2024-10-01T02:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Line Items on Manually Signed Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1048576#M77057</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/171963"&gt;@Bortami&lt;/a&gt;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks you very much for taking the time to put this together. I'd like to invite a few champs to the conversation —&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/241684"&gt;@ChrisoKlepke&lt;/a&gt;&amp;nbsp;have you run into this, or a similar, issue? I'll also dig a bit in close support tickets to see if I can find any info for us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking a look! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 16:53:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1048576#M77057</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-10-01T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Line Items on Manually Signed Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1049230#M77073</link>
      <description>&lt;P&gt;Upon further testing, no other quote line items are returned except for the inputted quote's, and even then it's not until its retrieved later and not in the top line_items collection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;query fetchDealWithQuotes {
        CRM {
          quote(uniqueIdentifier: "quoteId", uniqueIdentifierValue: "770680221"
        ) {
            associations {
              line_item_collection__primary {
                items {
                  name
                  quantity
                }
              }
              deal_collection__primary {
                items {
                  associations {
                    line_item_collection__primary {
                      items {
                        name
                        quantity
                      }
                    }
                    quote_collection__primary {
                      items {
                        associations {
                          line_item_collection__primary {
                            items {
                              name
                              quantity
                            }
                          }
                        }
                        hs_status
                        hs_sign_status
                        hs_object_id
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"data": {
    "CRM": {
      "quote": {
        "associations": {
          "line_item_collection__primary": {
            "items": []
          },
          "deal_collection__primary": {
            "items": [
              {
                "associations": {
                  "line_item_collection__primary": {
                    "items": [
                      {
                        "name": "14963999249 - Test Product Type #2",
                        "quantity": 1
                      },
                      {
                        "name": "15129201267 - Test Product",
                        "quantity": 5
                      },
                      {
                        "name": "14963999249 - Test Product Type #2",
                        "quantity": 2
                      },
                      {
                        "name": "15129201267 - Test Prodct",
                        "quantity": 5
                      },
                      {
                        "name": "14899564042 - WKLY TEST5",
                        "quantity": 1
                      }
                    ]
                  },
                  "quote_collection__primary": {
                    "items": [
                      {
                        "associations": {
                          "line_item_collection__primary": {
                            "items": []
                          }
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "hs_sign_status": {
                          "label": "Quote has been manually signed (via marked as sign feature)",
                          "value": "MANUALLY_SIGNED"
                        },
                        "hs_object_id": 768853130
                      },
                      {
                        "associations": {
                          "line_item_collection__primary": {
                            "items": []
                          }
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "hs_sign_status": {
                          "label": "Quote has completed esign process",
                          "value": "ESIGN_COMPLETED"
                        },
                        "hs_object_id": 770680221
                      },
                      {
                        "associations": {
                          "line_item_collection__primary": {
                            "items": []
                          }
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "hs_sign_status": {
                          "label": "Quote has been manually signed (via marked as sign feature)",
                          "value": "MANUALLY_SIGNED"
                        },
                        "hs_object_id": 781364256
                      },
                      {
                        "associations": {
                          "line_item_collection__primary": {
                            "items": [
                              {
                                "name": "14899564042 - WKLY TEST5",
                                "quantity": 1
                              },
                              {
                                "name": "15129201267 - Test Product",
                                "quantity": 5
                              },
                              {
                                "name": "14963999249 - Test Product Type #2",
                                "quantity": 2
                              },
                              {
                                "name": "15129201267 - Test Product",
                                "quantity": 5
                              },
                              {
                                "name": "14963999249 - Test Product Type #2",
                                "quantity": 1
                              }
                            ]
                          }
                        },
                        "hs_status": {
                          "label": "Approval not needed",
                          "value": "APPROVAL_NOT_NEEDED"
                        },
                        "hs_sign_status": {
                          "label": "Quote has completed esign process",
                          "value": "ESIGN_COMPLETED"
                        },
                        "hs_object_id": 788285090
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }
  }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 17:49:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1049230#M77073</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2024-10-02T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Line Items on Manually Signed Quotes</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1059530#M77624</link>
      <description>&lt;P&gt;Following up here after I spent sometime with internal HubSpot engineers and technical resources, just so there's a record of what the outcome is, in case someone else comes along and is looking for this answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I experienced is expected behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This comes down to how HubSpot treats line items and their relationship between deals and quotes. Here's the flow: line items get added to a deal, a quote is created. those line items are copied to the quote. the deal's original line items are deleted and replaced with copies from quote. Each new quote that is generated on a deal will delete the deal's line items, other quote's line items, and the new quote is now the source of truth on which line items should be on the deal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you're tracking line item inventory and need access to the historical data to find the deltas for the math part of inventory tracking, you're going to need an external database to store the line item history.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do change orders on a new deal if the original deal's quote is signed.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 23:41:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-Items-on-Manually-Signed-Quotes/m-p/1059530#M77624</guid>
      <dc:creator>Bortami</dc:creator>
      <dc:date>2024-10-23T23:41:36Z</dc:date>
    </item>
  </channel>
</rss>

