<?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: Using POST in search  ticket is returning hs_pipeline and hs_pipeline_stage as number in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1053274#M77323</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/839372"&gt;@YLabrou&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to perform a lookup, potentially via the Get Ticket Stages HubSpot API endpoint. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;STRONG&gt;GET&lt;/STRONG&gt; https://api.hubapi.com&lt;SPAN&gt;/crm/v3/pipelines/tickets/&lt;STRONG&gt;:PIPELINE_ID&lt;/STRONG&gt;/stages&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT size="3" color="#808080"&gt;&lt;EM&gt;e.g. &lt;STRONG&gt;GET&lt;/STRONG&gt;&amp;nbsp;https://api.hubapi.com/crm/v3/pipelines/tickets/&lt;STRONG&gt;0&lt;/STRONG&gt;/stages&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "results": [
        {
            "label": "Support | New", // ticket status label
            "displayOrder": 0,
            "metadata": {
                "ticketState": "OPEN",
                "isClosed": "false"
            },
            "id": "1", // ticket status id
            "createdAt": "1970-01-01T00:00:00Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        },
        {
            "label": "Support | In Progress",
            "displayOrder": 1,
            "metadata": {
                "ticketState": "OPEN",
                "isClosed": "false"
            },
            "id": "10112923",
            "createdAt": "2021-12-16T16:13:51.492Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        },
        {
            "label": "Support | Resolved",
            "displayOrder": 2,
            "metadata": {
                "ticketState": "CLOSED",
                "isClosed": "true"
            },
            "id": "10112924",
            "createdAt": "2021-12-16T16:13:51.492Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 23:37:02 GMT</pubDate>
    <dc:creator>zach_threadint</dc:creator>
    <dc:date>2024-10-10T23:37:02Z</dc:date>
    <item>
      <title>Using POST in search  ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1052590#M77274</link>
      <description>&lt;P&gt;I am using POST on search for tickets.&lt;BR /&gt;I get the&amp;nbsp;hs_pipeline and hs_pipeline_stage as number&lt;/P&gt;&lt;P&gt;How can I display as text (using the pipeline name and stage) instead of a number?&lt;/P&gt;&lt;P&gt;Trying to intergate it to ZD AI bot&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:20:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1052590#M77274</guid>
      <dc:creator>YLabrou</dc:creator>
      <dc:date>2024-10-09T20:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using POST in search  ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1052964#M77298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/839372"&gt;@YLabrou&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You'll need to retrieve the pipeline definitions using the Pipelines API. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;here is the link for your reference -&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/pipelines/tickets?hapikey=your_api_key" target="_blank"&gt;https://api.hubapi.com/crm/v3/pipelines/tickets?hapikey=your_api_key&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 14:48:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1052964#M77298</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-10-10T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using POST in search  ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1053274#M77323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/839372"&gt;@YLabrou&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to perform a lookup, potentially via the Get Ticket Stages HubSpot API endpoint. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;STRONG&gt;GET&lt;/STRONG&gt; https://api.hubapi.com&lt;SPAN&gt;/crm/v3/pipelines/tickets/&lt;STRONG&gt;:PIPELINE_ID&lt;/STRONG&gt;/stages&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT size="3" color="#808080"&gt;&lt;EM&gt;e.g. &lt;STRONG&gt;GET&lt;/STRONG&gt;&amp;nbsp;https://api.hubapi.com/crm/v3/pipelines/tickets/&lt;STRONG&gt;0&lt;/STRONG&gt;/stages&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "results": [
        {
            "label": "Support | New", // ticket status label
            "displayOrder": 0,
            "metadata": {
                "ticketState": "OPEN",
                "isClosed": "false"
            },
            "id": "1", // ticket status id
            "createdAt": "1970-01-01T00:00:00Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        },
        {
            "label": "Support | In Progress",
            "displayOrder": 1,
            "metadata": {
                "ticketState": "OPEN",
                "isClosed": "false"
            },
            "id": "10112923",
            "createdAt": "2021-12-16T16:13:51.492Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        },
        {
            "label": "Support | Resolved",
            "displayOrder": 2,
            "metadata": {
                "ticketState": "CLOSED",
                "isClosed": "true"
            },
            "id": "10112924",
            "createdAt": "2021-12-16T16:13:51.492Z",
            "updatedAt": "2023-08-01T05:06:27.529Z",
            "archived": false,
            "writePermissions": "CRM_PERMISSIONS_ENFORCEMENT"
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 23:37:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Using-POST-in-search-ticket-is-returning-hs-pipeline-and-hs/m-p/1053274#M77323</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-10-10T23:37:02Z</dc:date>
    </item>
  </channel>
</rss>

