Creating a Webhook that only gets triggered for new added rows but not for updates
Hello according to API documentation, creation request of Webhooks the events parameter should only get an array with "*.*" value.This would mean that web hook would be called on any changes happened on sheet.
I would need to get my web hook get triggered only when a new row is added.
Is it possible to limit this?
Answers
-
And second nested question will be how would I get the values of the cells in the body of the web hook.
-
Hi @ILKER
You are correct, currently the Event that Webhooks are subscribed to is "all objects" and "all events". You can use this to subscribe to all events and then have your code process the webhooks to filter for only when a row is added on your side.
To answer your second question, the callback payload is a "skinny" payload -- it indicates which objects changed and the type of events that occurred, but does not contain any data from the objects themselves.
See the Note in this section of the API documentation: Intro to Webhooks
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives