Ticket list per contact

Hi everyone,

we would like to build an thrid party application to show all tickets which have an association to anspecific contact object.

I read already the api documentation and stuck at the point, that we need a bunch of requests to get all data to one single ticket.

This is the request workflow:

  1. list of associations from contact to tickets, api path: “/crm/v3/objects/contacts/{{CONTACT_ID}}/associations/ticket”
  2. per ticket the details, api path: “/crm/v3/objects/tickets/{{TICKET_ID}}”
  3. list of associations from ticket to engagements, api path: “/crm/v3/objects/tickets/{{TICKET_ID}}/associations/engagement”
  4. per engagement the details, api path: “/crm/v3/objects/engagement/{{ENGAGEMENT_ID}}”
  5. per attachment id of the engagement details the meta data of the files,api path: “/files/v3/files/{{FILE_ID}}”
  6. per attachment file one file request

Do you have any advice to reduce the counts of requests?

Best regards

@Teun , any thoughts on trimming this down :grimacing:

Hi @web-developer1 and @dennisedson ,

I went through the docs, but I wasn’t able to find any way to reduce the number of requests.

HOWEVER, WITH THE AMAZING GRAPHQL ANNOUNCEMENT DURING DEVELOPER DAY, YOU SHOULD BE ABLE TO RETRIEVE ALL THIS WITH A SINGLE REQUEST.

I apologize for my enthusiasm. Check the docs.