Recent searches


No recent searches

Integração Droz Nexo's Avatar

Integração Droz Nexo

Joined Jan 09, 2024

·

Last activity Jul 17, 2024

Following

0

Followers

0

Total activity

4

Vote

1

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Integração Droz Nexo

Integração Droz Nexo commented,

CommentBusiness rules

I use this template and I'm able to get an array of attachments with filename and url properties.

{
   "ticketId": "{{ticket.id}}",
   "externalId": "{{ticket.external_id}}",
   "tags": "{{ticket.tags}}",
   "comment": "{{ticket.latest_public_comment_html}}",
   "attachments": [
    {% for comment in ticket.comments limit:1 offset:0 %}
      {% for attachment in comment.attachments %}
        {
          "filename":"{{attachment.filename}}",
          "url":"{{attachment.url}}"
        }{% if forloop.last %}{% else %},{% endif %}
      {% endfor %}
    {% endfor %}
   ],
   "authorId": "{{ticket.latest_comment.author.id}}",
   "status": "{{ticket.status}}"
 }

 

View comment · Posted Jul 17, 2024 · Integração Droz Nexo

0

Followers

1

Vote

0

Comments


Integração Droz Nexo commented,

CommentBusiness rules

I see there's no content_type property in the attachment, would it be possible to add that?

View comment · Posted Jan 09, 2024 · Integração Droz Nexo

0

Followers

0

Votes

0

Comments