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
Eric Nelson
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
Saurav Kumar
Hi Eric,
this is the link: https://support.zendesk.com/hc/en-us/articles/4408886858138-Zendesk-Support-placeholders-reference
0
Eric Nelson
-1
Denis Tataurov
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