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
Team Messaging webhook not returning attachment when a Task is marked Complete/Incomplete
Tags: developer sandbox, message, webhooks
Mar 8, 2023 at 1:54pm   •   2 replies  •  0 likes
VBS Development

I'm attempting to set up a webhook that can be used to keep the status of RingCentral (glip) Tasks in sync with an external system. I am using the /restapi/v1.0/glip/posts filter (https://developers.ringcentral.com/api-reference/Team-Messaging-Post-Event).

When a new task is created the task is sent to the webhook in the Attachments field as expected but when the task is marked Complete or Incomplete the webhook does not contain any data related to the task.


Webhook data for task creation (good):

"body":{
      "id":"<>",
      "groupId":"<>",
      "type":"TextMessage",
      "text":"",
      "creatorId":"<>",
      "addedPersonIds":null,
      "creationTime":"2023-03-07T22:46:02.710Z",
      "lastModifiedTime":"2023-03-07T22:46:02.710Z",
      "attachments":[
         {
            "id":"<>",
            "assignees":[
               {
                  "id":"<>"
               }
            ],
            "chatIds":[
               "<>"
            ],
            "completenessCondition":"Simple",
            "color":"Green",
            "creationTime":"2023-03-07T22:46:02Z",
            "creator":{
               "id":"<>"
            },
            "lastModifiedTime":"2023-03-07T22:46:02Z",
            "recurrence":{
               "schedule":"None",
               "endingCondition":"None"
            },
            "status":"Pending",
            "subject":"webhook test",
            "type":"Task"
         }
      ],
      "activity":null,
      "title":null,
      "iconUri":null,
      "iconEmoji":null,
      "mentions":null,
      "eventType":"PostAdded"
   }


Webhook data for task completion (data missing):

"body":{
      "id":"<>",
      "groupId":"<>",
      "type":"TextMessage",
      "text":"",
      "creatorId":"<>",
      "addedPersonIds":null,
      "creationTime":"2023-03-07T22:48:05.714Z",
      "lastModifiedTime":"2023-03-07T22:48:05.714Z",
      "attachments":null,
      "activity":null,
      "title":null,
      "iconUri":null,
      "iconEmoji":null,
      "mentions":null,
      "eventType":"PostAdded"
   }


Is this the expected behavior? Is there perhaps a different filter I should be using? Or is there a recommended work around that doesn't involve polling for task updates? Thanks.

2 Answers
answered on Mar 14, 2023 at 12:11pm  

Thanks @Phong Vu yes the webhook that is triggered on task completion does not include an attachment and thus it doesn't seem to be possible to determine which task was completed based on the information included in the webhook. Thanks for looking into this.


 0
answered on Mar 13, 2023 at 7:58am  

Sorry for the delayed response.

Just to confirm that the event when a task is updated or completed does not include the attachment. While the attachment can be missing from those events (one can use the attachment id when a task is created), but I would expect that those events should have a task id and some meaningful task status. I will check with the platform team to see how they can improve it.


 1



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