<?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: Deal entity - Weighted open pipeline in company currency returns different default values in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226587#M85622</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You definitely sent me far down the rabbit hole with this one. But after digging through it, here's what I found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The property is calculated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value of "hs_weighted_pipeline_in_company_currency" is calculated using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hs_open_amount_in_home_currency * hs_deal_stage_probability&lt;/LI-CODE&gt;&lt;P&gt;So whatever you get back from the API depends entirely on the output of these two fields at that exact moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. different "types" of zero&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let's have a look at the "hs_open_amount_in_home_currency" property, which is also calculated. Its logic behaves roughly like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Deal is open → use "amount_in_home_currency" (stored as decimal e.g. 0.0)&lt;/LI&gt;&lt;LI&gt;Deal is closed → return 0 (not a decimal)&lt;/LI&gt;&lt;LI&gt;If values are missing / haven't ben calculated yet → return "" (empty string) / null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So the calculation may receive:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.0 (decimal)&lt;/LI&gt;&lt;LI&gt;0 (integer)&lt;/LI&gt;&lt;LI&gt;"" (empty String)&lt;/LI&gt;&lt;LI&gt;null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Even though all of them look like "nothing," they are stored as different data types, and HubSpot seems to treat them differently within the calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. How HubSpot behaves with each case&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Based on testing, HubSpot seems to follow this pattern:&lt;/P&gt;&lt;TABLE border="1" width="800"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;0.0 × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"0.0" (decimal)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;0 × probability (0 or 100%)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"0" (integer)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;"" × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"" (empty String)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;null × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This confirms that HubSpot does not normalize the result into a single numeric format.&lt;BR /&gt;Instead, it preserves the "type" of whatever went into the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Why this happens&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is likely due to how HubSpot’s calculated fields propagate values internally,&lt;/P&gt;&lt;P&gt;how null and empty values are handled and how the API serializes numbers differently depending on the source. So even though mathematically everything is "zero", HubSpot treats decimal zero, integer zero, empty String and null as different inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Recommendation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since HubSpot may return "0", "0.0", "", or null, the safest approach is to normalize the value in your integration logic before using it.&amp;nbsp;&lt;SPAN&gt;This prevents parsing issues, type errors, or unexpected behavior when HubSpot switches between these formats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Did my post resolve your question? If so, please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;marking it as the accepted solution&amp;nbsp;to help others in the community.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 19:18:20 GMT</pubDate>
    <dc:creator>d-lupo</dc:creator>
    <dc:date>2025-11-20T19:18:20Z</dc:date>
    <item>
      <title>Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1224946#M85542</link>
      <description>&lt;P&gt;There is one property in the Deals entity in the HubSpot viz&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Weighted open pipeline in company currency ( internal name -&amp;nbsp;hs_weighted_pipeline_in_company_currency).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Currently I'm working on an integration and Migration product known as OpsHub Integration Manager, which is used for the bidirectional integration of the HubSpot system with any other CRM systems like Salesforce, ServiceNow etc.&lt;BR /&gt;&lt;BR /&gt;Now the issue I'm currently facing with this field is, when I don't set this field value, then by default it's value when fetched from the Deal API response as 0.&lt;BR /&gt;&lt;BR /&gt;But sometimes this same field's value is returned as 0.0, from the API response.&lt;BR /&gt;&lt;BR /&gt;So, just want to clarify that is there any issue with such type of calculated field or not. Or is there any additional configuration required in order to not set this kind of fields.&lt;BR /&gt;&lt;BR /&gt;The below is the sample response for this properties' metadata fetched from the properties API.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ASuthar_0-1763447903181.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/161554i44D57E873259FFAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ASuthar_0-1763447903181.png" alt="ASuthar_0-1763447903181.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Nov 2025 06:39:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1224946#M85542</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-18T06:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225057#M85550</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&lt;/SPAN&gt; and thanks for reaching out to the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;I'd love to put you in touch with our top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/996002"&gt;@d-lupo&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt; do you have any insights to share with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a wonderful day and thanks so much!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 11:44:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225057#M85550</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-11-18T11:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225060#M85551</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;, for your speedy response, looking for the genuine and worth solution.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 11:52:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225060#M85551</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-18T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225083#M85555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This happens because the field is a calculation equation (fieldType: "calculation_equation") AND its type is number with showCurrencySymbol: true, and HubSpot automatically formats number + currency values depending on:&amp;nbsp;hs_open_amount_in_home_currency*hs_deal_stage_probability&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;HubSpot only &lt;STRONG&gt;adds decimal places when "currency formatting" is enabled,&lt;/STRONG&gt;&amp;nbsp;so that you can use this curl&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --request PATCH \
  --url "https://api.hubapi.com/crm/v3/properties/deals/hs_weighted_pipeline_in_company_currency" \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer YOUR_PRIVATE_APP_TOKEN" \
  --data '{
    "showCurrencySymbol": true,
    "displayFormat": "currency",
    "decimalPlaces": 2
  }'&lt;/LI-CODE&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Mohd Israr&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 13:12:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225083#M85555</guid>
      <dc:creator>mohdisrarmwb</dc:creator>
      <dc:date>2025-11-18T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225594#M85581</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/946506"&gt;@mohdisrarmwb&lt;/a&gt;&amp;nbsp;, for your reply,&lt;BR /&gt;&lt;BR /&gt;But the issue I'm facing is, this field's value is changing arbitarily, like let's say 10 API calls are made then there are chances that all 10 will return same value for this fields as 0.&lt;BR /&gt;&lt;BR /&gt;But there can be another case as well, where out of 10, 1 API call returns the value as 0.0.&lt;BR /&gt;&lt;BR /&gt;So, want to understand how this can be possible.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 10:39:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1225594#M85581</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-19T10:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226370#M85607</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;"It appears that when either the deal amount or the probability value required for the calculation is not present, HubSpot resolves the computed property to its default value of 0. If your integration requires consistent numeric handling, you should normalize the value by explicitly converting it to a decimal/double, for example:&lt;BR /&gt;value = parseFloat(hs_weighted_pipeline_in_company_currency || 0);&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this will help you out. Please mark it as &lt;/SPAN&gt;&lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt;&lt;SPAN&gt; to help another Community member.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 11:24:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226370#M85607</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-11-20T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226392#M85610</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;&amp;nbsp;, for your solution, just one thing to confirm, that if when it will return 0.0, like in which case this can happen&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 12:24:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226392#M85610</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-20T12:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226396#M85611</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two scenarios that come to my mind are : &lt;BR /&gt;When the amount is 0 and the probability has any value, or when amount is 0.0 and the probability has 100%. In either case, it will return "0.0".&lt;BR /&gt;For a better understanding, you can check the value of the amount and probability for the values whose is coming out as "0.0".&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 13:01:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226396#M85611</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2025-11-20T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226587#M85622</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You definitely sent me far down the rabbit hole with this one. But after digging through it, here's what I found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. The property is calculated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The value of "hs_weighted_pipeline_in_company_currency" is calculated using:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hs_open_amount_in_home_currency * hs_deal_stage_probability&lt;/LI-CODE&gt;&lt;P&gt;So whatever you get back from the API depends entirely on the output of these two fields at that exact moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. different "types" of zero&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let's have a look at the "hs_open_amount_in_home_currency" property, which is also calculated. Its logic behaves roughly like this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Deal is open → use "amount_in_home_currency" (stored as decimal e.g. 0.0)&lt;/LI&gt;&lt;LI&gt;Deal is closed → return 0 (not a decimal)&lt;/LI&gt;&lt;LI&gt;If values are missing / haven't ben calculated yet → return "" (empty string) / null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So the calculation may receive:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;0.0 (decimal)&lt;/LI&gt;&lt;LI&gt;0 (integer)&lt;/LI&gt;&lt;LI&gt;"" (empty String)&lt;/LI&gt;&lt;LI&gt;null&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Even though all of them look like "nothing," they are stored as different data types, and HubSpot seems to treat them differently within the calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. How HubSpot behaves with each case&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Based on testing, HubSpot seems to follow this pattern:&lt;/P&gt;&lt;TABLE border="1" width="800"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;0.0 × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"0.0" (decimal)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;0 × probability (0 or 100%)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"0" (integer)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;"" × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;"" (empty String)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="399.6px" height="30px"&gt;null × probability (any)&lt;/TD&gt;&lt;TD width="399.6px" height="30px"&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This confirms that HubSpot does not normalize the result into a single numeric format.&lt;BR /&gt;Instead, it preserves the "type" of whatever went into the formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Why this happens&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This is likely due to how HubSpot’s calculated fields propagate values internally,&lt;/P&gt;&lt;P&gt;how null and empty values are handled and how the API serializes numbers differently depending on the source. So even though mathematically everything is "zero", HubSpot treats decimal zero, integer zero, empty String and null as different inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5. Recommendation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Since HubSpot may return "0", "0.0", "", or null, the safest approach is to normalize the value in your integration logic before using it.&amp;nbsp;&lt;SPAN&gt;This prevents parsing issues, type errors, or unexpected behavior when HubSpot switches between these formats.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Did my post resolve your question? If so, please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;marking it as the accepted solution&amp;nbsp;to help others in the community.&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dennis&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 19:18:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226587#M85622</guid>
      <dc:creator>d-lupo</dc:creator>
      <dc:date>2025-11-20T19:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226692#M85634</link>
      <description>&lt;P data-start="0" data-end="13"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="15" data-end="275"&gt;You’re right to question the inconsistency here. With this specific property, nothing is “wrong” with your integration. The inconsistency comes from how HubSpot evaluates and serializes calculated currency fields at different moments in the deal lifecycle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few things can help clarify what you’re observing.&lt;/P&gt;
&lt;P&gt;When HubSpot evaluates a calculation with currency formatting, it can resolve the underlying inputs as either a float or an integer depending on which upstream field finishe&lt;SPAN&gt;d calculating first. HubSpot’s documentation around property history and how fields recompute after API writes shows how these system fields may not resolve in a fully synchronized order (&lt;A href="https://knowledge.hubspot.com/properties/create-and-edit-properties" target="_blank"&gt;https://knowledge.hubspot.com/properties/create-and-edit-properties&lt;/A&gt; )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That means sometimes the calculation engine receives 0.0 from hs_open_amount_in_home_currency, and sometimes it receives 0 if the previous sync cycle treated that same value as an integer. These inconsistencies show up especially when the deal is just created, or when amount, pipeline, or stage probability are updated in quick succession.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, because the field is a calculation_equation combined with displayFormat: currency and dynamic currency logic, HubSpot does not normalize zero values before serialization. That’s why two API calls made just seconds apart can return 0 for one request and 0.0 for the next even though the underlying arithmetic is identical.&lt;/P&gt;
&lt;P data-start="1472" data-end="1714"&gt;The safest pattern for integrations like yours is to standardize these numeric fields on your side before applying business logic.&lt;/P&gt;
&lt;P data-start="1472" data-end="1714"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1472" data-end="1714"&gt;This prevents unexpected behavior when HubSpot’s calculation engine completes in a slightly different sequence. If your integration also needs consistent deal values from external CRM systems like Salesforce or ServiceNow, Stacksync keeps both sides aligned in real time so these computed HubSpot fields always resolve against stable inputs. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 23:09:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226692#M85634</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-11-20T23:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226795#M85642</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&amp;nbsp;, for your detailed explanation and fix. It really helped me to understand this core issue being occured from the HubSpot end.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also thanks to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/996002"&gt;@d-lupo&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/346639"&gt;@GRajput&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/946506"&gt;@mohdisrarmwb&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;for your quick responses and analysis.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Aniket.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 08:52:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226795#M85642</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-21T08:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226867#M85650</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/949462"&gt;@ASuthar&lt;/a&gt;&lt;/SPAN&gt;, I am glad to hear that all is working for you now!&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for sharing your valuable feedback, it truly means a lot to us!&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To help ensure your thoughts are seen by the right team, I recommend &amp;nbsp;&lt;A href="https://developers.hubspot.com/feedback" target="_blank"&gt;submitting the HubSpot Developer feedback form&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;If you’d like, I’d be more than happy to submit it for you, just let me know what works best for you.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again, and I hope you have a fantastic weekend!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 12:38:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226867#M85650</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-11-21T12:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deal entity - Weighted open pipeline in company currency returns different default values</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226878#M85651</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;, same to you, have awesome weekend.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 12:48:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Deal-entity-Weighted-open-pipeline-in-company-currency-returns/m-p/1226878#M85651</guid>
      <dc:creator>ASuthar</dc:creator>
      <dc:date>2025-11-21T12:48:47Z</dc:date>
    </item>
  </channel>
</rss>

