Recent searches


No recent searches

Attachment ID placeholder for a comment



Posted Feb 17, 2022

Hi,
I read through the placeholder reference page.

I am triggering an event whenever a comment is created. Now in a comment there are multiple attachments and i'm able to fetch their urls and names by using following POST body.

{"ticket_id":"{{ticket.id}}",
"comment_id":"{{ticket.comments[0].id}}",
"attachment":["{% for attachment in ticket.comments[0].attachments %}<{'filename': '{{attachment.filename}}', 'permalink': '{{attachment.url}}', 'id': ''}>{% endfor %}"]}

But i am looking for a placeholder inside this that can give me the attachment id field as part of id inside each attachment.


1

4

4 comments

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Saurav,

Can you link me to the placeholder reference docs you're referring to? I just want to make sure we're both referring to the same thing.

Thanks!

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Thanks for confirming. Unfortunately we don't expose the ID to the service that handles business rules placeholders. If you need this information, you can easily pull it from the list comments api endpoint.

-1


Hello, I have the same request as Saurav. It's quite confusing when a resource doesn't have its identifier. Of course there are plenty of workarounds but it doesn't make it easier as there may be id mismatches further in the business flow.

It will be very helpful to expose id of any Zendesk resource that may be specified in the webhook template

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post