# TROUBLESHOOTING: My filter on webhook export or import doesn’t seem to work?

**URL:** <https://connective.celigo.com/t/troubleshooting-my-filter-on-webhook-export-or-import-doesn-t-seem-to-work/1218>\
**Category:** Integrator.io\
**Tags:** filter, export, import, javascript, webhook\
**Created:** [February 8, 2021, 3:09pm UTC](https://connective.celigo.com/t/troubleshooting-my-filter-on-webhook-export-or-import-doesn-t-seem-to-work/1218 "2021-02-08T15:09:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![courtneyjordan](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@courtneyjordan](https://connective.celigo.com/u/courtneyjordan)\
**Post date:** [February 8, 2021, 3:09pm UTC](https://connective.celigo.com/t/troubleshooting-my-filter-on-webhook-export-or-import-doesn-t-seem-to-work/1218/1 "2021-02-08T15:09:16Z")

</div>

**Q:** I need to filter out payloads where the payload.totalAfterTip is less than 0. When I set these in the filter as is less than (or is greater than), the filter isn’t catching the expected values?

**A:** Thank you for bringing this to our attention - this fix is planned for our Q1 release. In the meantime, you can use a JavaScript runtime filter in a preMap hook, such as:

```
function preMap (options){ if(options.record.allocatedCount=='yourvaluehere'){ return options.record } else { return false;}
```

Make sure to replace ‘yourvaluehere’ with your count value.  
  
Learn more about [webhook listeners](https://docs.celigo.com/hc/en-us/articles/360015827372-Understand-and-create-webhook-listeners).
