Skip to main content
Solved

Include_attachments no longer working


Forum|alt.badge.img+3
  • Top Contributor
  • 11 replies

Hello, 

  We were using {{ include_attachments }} in our workflows when sending emails and approval requests but it no longer works. Approvals requests no longer include attachments and sending emails using workflows also fails to include attachments:
 

Hi {{approval.member.name}},

A new Service Request has been submitted for your approval.

Request Summary

{{ticket.subject}} (#{{ticket.id}})

Requester: {{ticket.requester.name}}
Priority: {{ticket.priority}}
Status: {{ticket.status}}


{{ticket.visible_service_item_fields}}



{{approval.comments}}

{{include_attachments}}



For Approval/Reject Link click here


You can also approve/reject the request by replying to this email with only one of the following words as the first line of the mail - 'Approved, Approve, Rejected, Reject'.


Regards,
{{helpdesk_name}}

Can you guys revert the changes you done? I guess the problem is that this url is no longer returning attachments which was working fine until two weeks ago:
https://company.freshservice.com/api/v2/tickets/{{ticket.id_numeric}}?include=attachments
I also have ticket opened, but wondering maybe someone already encountered this issue and solved?

Thanks

Best answer by TadasA

Update from support:

  fix should be deployed for this bug in the next two - three days

View original
Did this topic help you find an answer to your question?

14 replies

Forum|alt.badge.img+11
  • Skilled Expert
  • 93 replies
  • December 2, 2024

When I attempt to make an API call of that nature I get this response:

{

    "description": "Validation failed",

    "errors": [

        {

            "field": "include",

            "message": "It should be one of these values: 'tags, conversations, requester, stats, problem, assets, impacted_services, change, related_tickets, requested_for, department, feedback, changes, onboarding_context, offboarding_context'",

            "code": "invalid_value"

        }

The functionality must have been removed.  It’s also not found in the API documentation: https://api.freshservice.com/#view_a_ticket

If you do a regular call to the API for just the ticket however it does return the array of attachments: https://company.freshservice.com/api/v2/tickets/{{ticket.id_numeric}}

So maybe the ‘?include=attachments’ filter is no longer required?


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • December 2, 2024

Yea, noticed this too. Ai Freddy also suggested to use same url i was using, but yea, like you say, Freshervice changed something which broke this completely. 

@MDavies was your API call to a ticket or a service request? Because if i check my service request with attachments it returns nothing. 
 

 


Forum|alt.badge.img+11
  • Skilled Expert
  • 93 replies
  • December 2, 2024

This was a Service Request.

I’ve just tried an Incident and an API call to that returned attachments.

I’ve then converted it to a Service Request and an API call to that also returned attachments.

I’ve created a Service Request via a Catalog offering and an API call and this also returns attachments.

 


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • December 2, 2024

That’s a weird one. Why for me it do not return when i do GET: https://company.freshservice.com/api/v2/tickets/2823

URL Looks same as yours.

 


Forum|alt.badge.img+11
  • Skilled Expert
  • 93 replies
  • December 2, 2024

How is your ticket being generated?  Are they Child Tickets?  Are they something to do with the Onboarding/Offboarding module?


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • December 2, 2024

It’s just a service request with a few custom fields and allow upload attachments option, pretty simple. So end user fills the form, uploads attachments, when i would send approval request and include attachments but that’s broken for me. 


Forum|alt.badge.img+11
  • Skilled Expert
  • 93 replies
  • December 2, 2024

Sadly I think something might not be right with your environment.  Hopefully Support can fix this for you soon.


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • December 2, 2024

@MDavies support confirmed that there might be a bug:


Upon checking internally, I noticed that this has been reported as a bug for Growth plan instances. I could also find a bug ticket which has been worked on by the Product Team.


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • Answer
  • December 2, 2024

Update from support:

  fix should be deployed for this bug in the next two - three days


rylet96
Community Debut
  • Community Debut
  • 2 replies
  • January 27, 2025
TadasA wrote:

Update from support:

  fix should be deployed for this bug in the next two - three days

Hi TadasA, Were you able to get the fix on this? We are still having this issue in our FS.


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • January 27, 2025

@rylet96 actually not, they changed api workflow but saying that all is good, so i moved the main workflow logic out of FS to n8n. So from FS i trigger web-hook on n8n and do the stuff which broke on FS after the update.

What support is saying to you? That all is ok?


 


rylet96
Community Debut
  • Community Debut
  • 2 replies
  • January 28, 2025
TadasA wrote:

@rylet96 actually not, they changed api workflow but saying that all is good, so i moved the main workflow logic out of FS to n8n. So from FS i trigger web-hook on n8n and do the stuff which broke on FS after the update.

What support is saying to you? That all is ok?


 

HI ​@TadasA, basically, the same reply that I got from support. But I had a eureka moment just as I was typing my reply to you and reading again the support reply. 

“For all service requests, the attachment will not appear in the description; instead, it will be located under the requested items. This is the product behavior as of now. 

I checked the API documentation and found this:  /api/v2/tickets/[id]/requested_items

I was able to get the attachment by doing that. I hope this will help you and the others as well.


Forum|alt.badge.img+3
  • Author
  • Top Contributor
  • 11 replies
  • January 30, 2025

@rylet96 the problem here, that for service requests this field no longer returns attachments:
 

Because previously i was using placeholder {{ include_attachmnets }} inside a action when sending email, so it was automatically attaching to the email attachments from the service requests and after they changed to /requested_items this flow broke. 


Forum|alt.badge.img+11
  • Skilled Expert
  • 93 replies
  • March 19, 2025

This change made by Freshworks months ago becomes a problem in the scenario where a Service Request is changed to an Incident; the Requested Item(s) will be removed and all of its/their contents (including attachments) will also be removed.


Reply