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
Webhook multiple postings
Tags: webhooks
Dec 7, 2017 at 5:49am   •   2 replies  •  0 likes
michael-lowery8078

I have setup some webhooks and my sytsem does a retrieve when it gets the notification. however i am getting multple postings for new messages within a split second of each other causing my system to grab the message twice.


is there a way to prevent multiple postings?


here are two examples of whats coming into my system as you can see they are .013 seconds apart for the same webhook posting



2017-12-06T22:02:06.000Z 18f63cd6-dad1-11e7-a27d-47bec3ea16f9 full event { method: 'POST',

body:

event: '/restapi/v1.0/account/7213xxxxx/extension/7265xxxxx/message-store',

timestamp: '2017-12-06T22:02:05.965Z',



2017-12-06T22:02:06.013Z 18f5046b-dad1-11e7-8088-1b4040c1d219 full event { method: 'POST',

body:

event: '/restapi/v1.0/account/7213xxxxx/extension/7265xxxxx/message-store',

timestamp: '2017-12-06T22:02:05.965Z',



2 Answers
answered on Dec 12, 2017 at 1:39am  
Hi Michael, 

As I can see susbcription IDs are different:
> subscriptionId: '6301c0e8-162b-476b-8e55-13ccef9a5748',
> subscriptionId: 'a38ebf5a-4d79-48f3-8376-92d5e011e025',

If you've created 2 WebHook subscriptions for the same event, e.g. message-store updates, then you'll receive 2 notifications generated from 1 event in the System. Could you please advise what is the Use Case of creating several WebHook subscriptions for the same event filters?

Thanks,



 1
answered on Dec 7, 2017 at 4:52pm  
Are the two messages identical? Could you please post the full content of them?

 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