Hi Jérémie,
Can you please let us know from which page you are trying to access this custom field?
You won't be able to access custom fields of a contact from the tickets detail page. You can access custom fields of a contact only from contacts detail page.
Please refer the following documentation for further clarity :
https://developers.freshdesk.com/v2/docs/data-api#ticket_details_page_apis - Refer to the contacts section under this.
https://developers.freshdesk.com/v2/docs/data-api#contact_details_page_apis - Refer to the contacts section under this.
Please reach out for any help needed.
Thanks,
Vinay Karthikk S
Hi,
Indeed, I was trying to access a contact custom field from the ticket details page. It works from the contact details page.
So you mean this is not possible at all accessing contact custom fields from a ticket details ? I can access any contact info there, except the custom fields ?
Thanks,
Regards
Hi Jérémie,
Yes. Its not possible to access contact custom fields from the ticket details page.
You can go through https://developers.freshdesk.com/v2/docs/data-api/#contactAPI and refer the attributes table for the list of attributes that can be accessed for contacts from a tickets detail page.
Thanks,
Vinay Karthikk S
OK, so I understand this is not possible to access custom fields from ticket details page.
For my business, this is very necessary to do so.
Do you think of any other solution / way to achieve this ?
Thanks,
Hi Jérémie,
You can try this using the freshdesk contact API for custom fields as mentioned in this document https://developer.freshdesk.com/api/#contacts . You will need to use request API to implement this. You can refer usage of request API here : https://developer.freshdesk.com/v2/docs/request-api/ .
Thanks,
Vinay Karthikk S
Jérémie Bennegent
Hello,
I have created a custom field alled "dringid" on my contacts.
It appears when I perform a curl requet :
I'd like to use it in my custom app with the JS library.
But unfortunately, data.contact.custom_fields.dringid seems undefined.
How should I access this custom field ?
Regards,