Menu

Placeholders in Google chat Webhook notification

2024-08-14
2024-08-15
  • vladimyr andres gonzalez ruiz

    hello,

    When I use placeholders in google chat message notifications, I have the problem that the placeholder of "description" and "hyperlink" show the HTML tag.

    It can be seen in the image, any way to solve it?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-08-14

    What place holder did you use for hyperlink?
    You might want to use url rather than hyperlink - https://www.itophub.io/wiki/page?id=latest:admin:placeholders

    As for the description... It is a HTML field.
    Have you played around with $this->html(description) ?

     
  • vladimyr andres gonzalez ruiz

    Hi Jeffrey, thanks for responding

    Checking, I was using the wrong placeholder, $this->url$ and the correct one is $this->url()$

    As for the description I have used the following placeholder for that and none of them work for me:

    • $this->html(description)$
    • $this->description:text$
    • $this->label(description)$
    • $this->description$
     
  • Guillaume Lajarige

    Hello Vladimyr,

    As mentioned in the "Message" field's tooltip, only plain text is supported for now for GoogleChat, so you should try $this->description$ as it will convert the content of the HTML description into plain text.

    Hope it helps,
    Guillaume

     
    🎉
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.