Skip to main content
Solved

Glip notification not invoking webhook for Teams files

  • February 4, 2022
  • 2 replies
  • 387 views

I wrote an application that subscribes to /restapi/v1.0/glip/posts. My webhook is invoked when new chat messages, tasks, and events are posted to a Team, but not when a file is added. Is there something else I should subscribe to for files?

Update: If I attach a file to an Event, I am not notified of the new Event. Remove the file from the Event and I receive the notification.

Best answer by PhongVu

Sorry for the delayed response Andrew. I guess that you are testing this in the sandbox environment. Currently, there is problem with posting attachments to a sandbox team messaging. That is why you won't receive a notification event. This should work on production and here is an example of the event payload.

{"id":"3564165923xxxx","groupId":"8544346xxxx","type":"TextMessage","text":"","creatorId":"62288329016","addedPersonIds":null,"creationTime":"2022-02-09T16:07:30.886Z","lastModifiedTime":"2022-02-09T16:07:30.886Z","attachments":[{"id":"1594796859402","name":"hubspot-sproket.png","contentUri":"https://dl.mvp.ringcentral.com/file/159479685xxxx","type":"File"}],"activity":null,"title":null,"iconUri":null,"iconEmoji":null,"mentions":null,"eventType":"PostAdded"}
View original
Did this thread help you find an answer to your question?

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • February 9, 2022

Sorry for the delayed response Andrew. I guess that you are testing this in the sandbox environment. Currently, there is problem with posting attachments to a sandbox team messaging. That is why you won't receive a notification event. This should work on production and here is an example of the event payload.

{"id":"3564165923xxxx","groupId":"8544346xxxx","type":"TextMessage","text":"","creatorId":"62288329016","addedPersonIds":null,"creationTime":"2022-02-09T16:07:30.886Z","lastModifiedTime":"2022-02-09T16:07:30.886Z","attachments":[{"id":"1594796859402","name":"hubspot-sproket.png","contentUri":"https://dl.mvp.ringcentral.com/file/159479685xxxx","type":"File"}],"activity":null,"title":null,"iconUri":null,"iconEmoji":null,"mentions":null,"eventType":"PostAdded"}

  • Known Participant
  • February 9, 2022

Thank you, Phong. I seem to be running into all sorts of Sandbox deficiencies. I will see what it takes to move to our production instance, but I had really hoped to wait until I knew my code was completely tested.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings