<?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: CRM card id in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/416950#M41363</link>
    <description>&lt;P&gt;Thanks for your sean, it is working. I used card name instead of card id.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 07:29:26 GMT</pubDate>
    <dc:creator>EkramulHuq</dc:creator>
    <dc:date>2021-03-11T07:29:26Z</dc:date>
    <item>
      <title>CRM card id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/415304#M41167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to get the CRM card ID at the webhook/Data fetch url end so that I can process request accourding to source card id and return json accourdingly. Currently we can get query string as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://example.com/demo-tickets?userId=12345&amp;amp;userEmail=testuser@example.com&amp;amp;associatedObjectId=78912&amp;amp;associatedObjectType=COMPANY&amp;amp;portalId=9999999&amp;amp;domain=testcompany.com" target="_blank" rel="noopener"&gt;https://example.com/demo-tickets?userId=12345&amp;amp;userEmail=testuser@example.com&amp;amp;associatedObjectId=78912&amp;amp;associatedObjectType=COMPANY&amp;amp;portalId=9999999&amp;amp;domain=testcompany.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we can get the CRM Card ID in the query string, we can use single url for many cards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Mar 2021 02:02:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/415304#M41167</guid>
      <dc:creator>EkramulHuq</dc:creator>
      <dc:date>2021-03-05T02:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: CRM card id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/415933#M41219</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/169127"&gt;@EkramulHuq&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you still working on this?&lt;/P&gt;
&lt;P&gt;Maybe &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/80390"&gt;@Sean_Matthews&lt;/a&gt; has some thought &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:40:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/415933#M41219</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-03-08T16:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: CRM card id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/416114#M41252</link>
      <description>&lt;P&gt;My first thought,&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982" target="_blank"&gt;@dennisedson&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/169127" target="_blank"&gt;@EkramulHuq&lt;/A&gt;&amp;nbsp;is that each Card is set up with it's own data fetch URL, so you should be able to pass along whatever you want to the URL. I haven't tried having the URL end in query params... try throwing a `?card_id=1234` at the end of your data fetch URL and see if that works?&lt;BR /&gt;&lt;BR /&gt;But otherwise, depending on what you're using to manage your data fetch URL endpoint, you should be able to pass whatever you want into the URL string itself so that you can parse it out. We use node.js and express for everything, and it's fairly straightforward for us to pass in and pull out from the URL param.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Example would be:&amp;nbsp;&lt;STRONG&gt;https://example.com/crm-extensions /{{card_id}}&amp;nbsp;&lt;/STRONG&gt;(https://example.com/crm-extensions/1235)&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;And then in your route logic, you would be able to parse the card id from the route param.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Also, I personally would go with a unique name, mostly because if you're like us and use multiple OAuth Apps to manage different environments (we have an OAuth App for&amp;nbsp;&lt;STRONG&gt;local dev&lt;/STRONG&gt;,&amp;nbsp;&lt;STRONG&gt;dev,&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;staging,&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;prod)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;then the CRM card IDs change per app. In that case, we usually pass in some identifier like:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A href="https://example.com/crm-extension/contact-tickets" target="_blank" rel="nofollow noopener noreferrer"&gt;https://example.com/crm-extension/contact-tickets&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;where "contact-tickets" is the string we're looking for in our route determine what data to return.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope that helps!&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Best,&lt;BR /&gt;~Sean&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 00:10:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/416114#M41252</guid>
      <dc:creator>Sean_Matthews</dc:creator>
      <dc:date>2021-03-09T00:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: CRM card id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/416950#M41363</link>
      <description>&lt;P&gt;Thanks for your sean, it is working. I used card name instead of card id.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 07:29:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/CRM-card-id/m-p/416950#M41363</guid>
      <dc:creator>EkramulHuq</dc:creator>
      <dc:date>2021-03-11T07:29:26Z</dc:date>
    </item>
  </channel>
</rss>

