We have a integration project to send tickets from Freshservice to a supplier, that includes attached files if there are any.
Have a hit wall when we tried to get the URLs for files that is attached to the latest comment(private). The URLs need to be in a string with a space or line break between them.
I used the API Service Desk API for Developers | Freshservice (List All Conversations of a Ticket) to retrieve all conversations but I haven’t found a way to the get the latest conversation and the related attached files. As I understand it the JSON parser adds all conversations attachments/values into one placeholder.
Anyone has a solution/workaround to this ?
TIA
Daniel
Best answer by Daniel Söderlund
Hello @daniel.soderlund
You can get the Attachments of the Ticket by doing the following:
1)Add .json to the Ticket link and you should get the json format of the Ticket.
2)Find the “attachments”, you will find the attachment ID and an “attachment_url_for_api” field, It’s a link which would allow you to download the note attachment.
Hope this helps : )
Thanks for the reply, didn’t know about the .json trick. Thanks for that.
1)Add .json to the Ticket link and you should get the json format of the Ticket.
2)Find the “attachments”, you will find the attachment ID and an “attachment_url_for_api” field, It’s a link which would allow you to download the note attachment.
1)Add .json to the Ticket link and you should get the json format of the Ticket.
2)Find the “attachments”, you will find the attachment ID and an “attachment_url_for_api” field, It’s a link which would allow you to download the note attachment.
Hope this helps : )
Thanks for the reply, didn’t know about the .json trick. Thanks for that.