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

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.