Filtering New Items from Hourly Webhook Data
Status: Closed · Asked by Sachin Kumar on · 0 views
Hello, I get a list of items in an array like [A, B, C] from a Webhook every hour, which I use in my app. After an hour, the Webhook received a new array list like [A, B, C, D, E]. I've already used [A, B, C] and now I just need to get [D, E] How can I do this?
You can try using code module, but TBH this is a bad way to implement webhook functionality in trigger app.
Ask trigger app developer to develop proper webhook functionality which only sends new data and immediately not every 1-hour.
Else they need to give you API Endpoint where you can GET all new data for last 1-hour.
I am trying to do it with the code module and it is partially done. Out of 4 steps - 3 are done. The only issue is where I can store the previously received data.
- Receives data from a webhook - DONE
- Stores the previously received data. - PENDING
- Compares the new data with the old data - DONE
- Extract the new elements that weren't in the previous data - DONE
You can store previous data with Variable by Pabbly Connect. Please refer this video, "
youtube.com/watch v=qLjI9klSSmI
"Contact me - https://www.facebook.com/himeshsoni07
Email - [EMAIL][email hidden][/EMAIL]
Thanks for the solution. It works.