Skip to content

How to fetch threads of a ticket #7

@ca-dsgn

Description

@ca-dsgn

Hi @thomas-kl1,

I just successfully fetched the data of a ticket via

$ticketDataObject = $gateway->getOperationPool()->getReadOperation('tickets')->get($params["ticket_id"]);

The response I get is this (via print_r):

Zoho\Desk\Model\DataObject Object
--
  | (
  | [entityIdFieldName:protected] => id
  | [data:protected] => Array
  | (
  | [modifiedTime] => 2021-12-09T08:17:06.000Z
  | [subCategory] =>
  | [statusType] => Open
  | [subject] => WG: xxx
  | [dueDate] =>
  | [departmentId] => 182834000000006907
  | [channel] => Email
  | [onholdTime] =>
  | [language] => German
  | [source] => Array
  | (
  | [appName] =>
  | [extId] =>
  | [permalink] =>
  | [type] => SYSTEM
  | [appPhotoURL] =>
  | )
  |  
  | [resolution] =>
  | [sharedDepartments] => Array
  | (
  | )
  |  
  | [closedTime] =>
  | [approvalCount] => 0
  | [isOverDue] =>
  | [isTrashed] =>
  | [createdTime] => 2021-12-07T12:57:57.000Z
  | [id] => 182834000006120001
  | [isResponseOverdue] =>
  | [customerResponseTime] => 2021-12-08T07:42:14.000Z
  | [productId] =>
  | [contactId] => 182834000006131069
  | [threadCount] => 7
  | [secondaryContacts] => Array
  | (
  | )
  |  
  | [priority] =>
  | [classification] =>
  | [commentCount] => 0
  | [taskCount] => 1
  | [accountId] => 
  | [phone] => 
  | [webUrl] => 
  | [isSpam] =>
  | [status] => 
  | [entitySkills] => Array
  | (
  | )
  |  
  | [ticketNumber] => 861
  | [sentiment] =>
  | [customFields] => Array
  | (
  | [Rückmeldung bevorzugt per] =>
  | [Link zu Angebot] =>
  | [Rückmeldung erwünscht bis] =>
  | )
  |  
  | [isArchived] =>
  | [description] =>
  | [timeEntryCount] => 0
  | [channelRelatedInfo] =>
  | [responseDueDate] =>
  | [isDeleted] =>
  | [modifiedBy] => 182834000000069005
  | [followerCount] => 0
  | [email] => xxx
  | [layoutDetails] => Array
  | (
  | [id] => 182834000000083011
  | [layoutName] => Sales
  | )
  |  
  | [channelCode] =>
  | [isFollowing] =>
  | [cf] => Array
  | (
  | [cf_link_zu_angebot] =>
  | [cf_ruckmeldung_bevorzugt] =>
  | [cf_ruckmeldung_erwunscht_bis] =>
  | )
  |  
  | [slaId] =>
  | [layoutId] => 182834000000083011
  | [assigneeId] => 182834000000069005
  | [createdBy] => 182834000000069005
  | [teamId] =>
  | [tagCount] => 0
  | [attachmentCount] => 0
  | [isEscalated] =>
  | [category] =>
  | )
  |  
  | )

I can see in the threadCount, that there are 7 replies on this ticket. My question is, how can I get those threads?

I found this specific information in the zoho desk api documentation, but I am not sure how to implement this using your php interface:

https://desk.zoho.com/DeskAPIDocument#Threads#Threads_Listconversations

Thank you in advance for your help.

Best,
Christian

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions