How to get data of the company of the ticket

client.data.get(‘company’) returns the company of the logged in user.

client.data.get(‘ticket’) returns the ticket.

the data in the ticket response contains the company_id of the ticket’s company.

Is there any way to get the data for the company with the id of company_id? Specifically, I need some custom data from that object?

Thanks

Adam

P.S. You need a data-methods tag. That’s how I would have tagged this post. :slight_smile:

Hi @adam_steckel,

Since Freshdesk doesn’t provide us the custom fields object using data api. With the company_id you can use the Freshdesk Api’s to get the company data with custom fields object.
https://developers.freshdesk.com/api/#view_company
I hope this helps

Thank You
Sarfaraz

1 Like

@sarfaraz_Mohammed

Thanks. Two step process. Ok. That works.