<?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: Get Ticket detail by ticket is returning hs_pipeline and hs_pipeline_stage as number in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389504#M38415</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;. I am trying to get the detail in same api so I don't have to hit pineline api.&lt;/P&gt;&lt;P&gt;Thank you for you response.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 17:34:01 GMT</pubDate>
    <dc:creator>Abhimanyu</dc:creator>
    <dc:date>2020-11-26T17:34:01Z</dc:date>
    <item>
      <title>Get Ticket detail by ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389047#M38374</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to get the details of the ticket by this api&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Endpoint&amp;nbsp; : /crm/v3/objects/tickets/{ticketId}&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is returning&amp;nbsp;&lt;STRONG&gt;hs_pipeline and hs_pipeline_stage&lt;/STRONG&gt; as number(their Id) as shown below in example 1 but I want to get then result as shown in example 2. Is there any way to achive it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example 1: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"id": "247495245",&lt;BR /&gt;"properties": {&lt;BR /&gt;"content": null,&lt;BR /&gt;"createdate": "2020-11-23T19:27:33.507Z",&lt;BR /&gt;"hs_lastmodifieddate": "2020-11-23T19:31:42.989Z",&lt;BR /&gt;"hs_object_id": "247495245",&lt;BR /&gt;&lt;STRONG&gt;"hs_pipeline": "6140873",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"hs_pipeline_stage": "6140874",&lt;/STRONG&gt;&lt;BR /&gt;"hs_ticket_category": null,&lt;BR /&gt;"hs_ticket_priority": "MEDIUM",&lt;BR /&gt;"subject": "Time Card/ Comission report showing duplicate information"&lt;BR /&gt;},&lt;BR /&gt;"createdAt": "2020-11-23T19:27:33.507Z",&lt;BR /&gt;"updatedAt": "2020-11-23T19:31:42.989Z",&lt;BR /&gt;"archived": false&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"createdAt": "2019-10-30T03:30:17.883Z",&lt;BR /&gt;"archived": false,&lt;BR /&gt;"id": "512",&lt;BR /&gt;"properties": {&lt;BR /&gt;"createdate": "2019-10-30T03:30:17.883Z",&lt;BR /&gt;"hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",&lt;BR /&gt;&lt;STRONG&gt;"hs_pipeline": "support_pipeline",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"hs_pipeline_stage": "open",&lt;/STRONG&gt;&lt;BR /&gt;"hs_ticket_priority": "HIGH",&lt;BR /&gt;"hubspot_owner_id": "910901",&lt;BR /&gt;"subject": "troubleshoot report"&lt;BR /&gt;},&lt;BR /&gt;"updatedAt": "2019-12-07T16:50:06.678Z"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 05:17:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389047#M38374</guid>
      <dc:creator>Abhimanyu</dc:creator>
      <dc:date>2020-11-25T05:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ticket detail by ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389157#M38386</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/150567"&gt;@Abhimanyu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out! I'll mention a few experts that can share their knowledge with you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/137640"&gt;@HenryCipolla&lt;/a&gt;&amp;nbsp;&amp;nbsp;any thoughts about this case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sharon&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 14:26:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389157#M38386</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2020-11-25T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ticket detail by ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389323#M38397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you are able to manually crete several deal stages and pipelines in your hubspot account there is nothing uniqe about the either the pipeline or the stage. You may for example name a pipeline stage the same thing in two different pipelines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can either request the pipeline information by asking for one pipeline per id with the pipeline get integration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/pipelines" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/pipelines&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I recommend getting the full pipeline list with all its stages and creating an array early on in your code and that specifies all your names for you. I code in PHP and for me it would look similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/crm/v3/pipelines/{objectType}:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;# $a_response_containing_json (where your request response is collected as a json)



foreach ($a_response_containing_json['results'] as $key =&amp;gt; $value)

{

$pipeline_id = $a_response_containing_json['results'] [$key]['id'];

$my_pipeline_names[$pipeline_id] =  $a_response_containing_json['results'] [$key]['label'];



#to get all your stage names you will have to do an other foreach loop within this array

foreach ($a_response_containing_json['results'][$key]['stages']  as $key2 =&amp;gt; $value2){



$stage_id = $a_response_containing_json['results'] [$key]['stages'][$key2]['id'];

$my_stage_names[$stage_id] = $a_response_containing_json['results'] [$key]['stages'][$key2]['label'];



}

}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of this will be two arrays&lt;/P&gt;&lt;P&gt;$my_pipeline_names[enter your pipeline id here];&lt;/P&gt;&lt;P&gt;$my_stage_names[enter your stage id here];&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:17:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389323#M38397</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-11-26T07:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get Ticket detail by ticket is returning hs_pipeline and hs_pipeline_stage as number</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389504#M38415</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;. I am trying to get the detail in same api so I don't have to hit pineline api.&lt;/P&gt;&lt;P&gt;Thank you for you response.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 17:34:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-Ticket-detail-by-ticket-is-returning-hs-pipeline-and-hs/m-p/389504#M38415</guid>
      <dc:creator>Abhimanyu</dc:creator>
      <dc:date>2020-11-26T17:34:01Z</dc:date>
    </item>
  </channel>
</rss>

