Get link url inside ticket generated by an html email



已于 2024年3月07日 发布

I have a trigger that notifies a web hook defined as this:

 

But when I send an html email like this:

<h1>This is a test message</h1>
<p><strong>Test 1</strong></p>
<table cellspacing="0" cellpadding="0" style="">
    <tbody>
        <tr>
              <td align="left" width="auto" height="30px" style="border-collapse: collapse; background-color: #2174c2">
                <a href="https://example.com/sdfsdzvxbvcgbvbvb" rel="noreferrer" target="_blank">
                      <span style="color: #ffffff; white-space: nowrap; display: inline-block; padding: 0 12px;">View #652834 ›</span>
                </a>
              </td>
        </tr>
      </tbody>
</table>

I'm not able to get the link (https://example.com/sdfsdzvxbvcgbvbvb) in the notified web hook. As example link doesn't appear in the posted json.

Is there a way to get the raw html posted to the web hook?

Please note that I've also tried, the following, but results are the same (The url inside the href attribute of the a tag doesn't get rendered anywhere)

{{ticket.latest_comment_html}}
{{ticket.latest_public_comment_html}}
{{ticket.latest_comment_formatted}}
{{ticket.latest_public_comment_formatted}}
{{ticket.latest_comment_rich}}
{{ticket.latest_public_comment_rich}}

 

For reference This is the json that it's being generated and posted by Zendesk to the webhook:

{
    "status": "Pending",
    "description": "----------------------------------------------\n\nREDACTED, Mar 7, 2024, 11:46 AM\n\n# This is a test message\n\n**Test 1**\n\nView #652834 ›",
    "comments": [
        "# This is a test message\n\n**Test 1**\n\nView #652834 ›",
        "----------------------------------------------\n\nREDACTED, Mar 7, 2024, 11:46 AM\n\n# This is a test message\n\n**Test 1**\n\nView #652834 ›",
        "",
        "# This is a test message\n\n**Test 1**\n\nView #652834 ›"
    ]
}

 

 


1

7

0 条评论

登录以发表评论。

找不到所需的内容?

新建帖子