News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Glip webhooks: Render basic HTML or strip HTML elements
Tags: webhooks
Dec 27, 2017 at 6:08am   •   3 replies  •  0 likes
joseph-porter

Hi,


We're bout to switch to Glip, and one of our use cases is for incoming messages posted via Webhook. Unfortunately, our service desk provider doesn't strip HTML from the description, so when we include the body a lot of HTML gets posted along with it, making it unreadable.


The service desk in question is Freshdesk.


Can there be a flag introduced to "strip_html or "render_basic_html" ? Elements include, with some styling:

  • <br>
  • <div>
  • <a>
  • <span>
  • <table>
  • <td>
  • <tr>

3 Answers
answered on Dec 29, 2017 at 1:57pm  
Freshdesk was able to help me with their syntax:
{{ ticket.description_text }}
and
{{ ticket.last_public_comment | strip_html }}


 1
answered on Dec 29, 2017 at 8:23am  
Who is the service desk provider?

To modify the webhook message, you can create a simple proxy to receive the message, modify it, and forward it to Glip. You would use your proxy's URL with the provider. I have some example code here:

https://github.com/grokify/webhookproxy

If the service desk provider has a free account program, I could look into whipping up a converter for the webhookproxy app.

 0
answered on Dec 27, 2017 at 4:55pm  
HTML text rendering is not supported. Because all html tags are escaped before rendering.

You can convert the HTML to glipdown format before posting it to Glip.

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us