Skip to main content

Hello, 

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 

Hello @daniel.soderlund

You can get the Attachments of the Ticket by doing the following:

(Please find the link for the video below: 

https://www.loom.com/share/c12953b1e9c848afb5031ad5572a481a)

 

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 : )

 


Hello @daniel.soderlund

You can get the Attachments of the Ticket by doing the following:

(Please find the link for the video below: 

https://www.loom.com/share/c12953b1e9c848afb5031ad5572a481a)

 

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.

I managed to solve the issue. 



{{P2.root.attachments.attachments_object.attachment_url | remove: "n" | remove: "]" | remove: '"' | replace: ',', ' Länk '| sanitize_html }}
 

I changed the parser to only use the “last” object then another parser to parse that object.