Filtering New Items from Hourly Webhook Data

Status: Closed · Asked by Sachin Kumar on · 0 views

sachinkt — Question ·

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?

Fagun Shah — Reply ·

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.

Fagun Shah
- Automation Freelancer
- Let's Connect - https://www.facebook.com/fagun.shah.7/
sachinkt — Reply ·

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.

  1. Receives data from a webhook - DONE
  2. Stores the previously received data. - PENDING
  3. Compares the new data with the old data - DONE
  4. Extract the new elements that weren't in the previous data - DONE

sachinkt — Reply ·

Thanks for the solution. It works.

Back to all forum threads · Log in to reply