Clay Icon

Request for Formula-Based Filtering in Object Lists

ยท
ยท

Really need the ability to filter lists of objects using a formula -- using the enrichment is brutal Not sure why there isn't a column type "list" that can handle that

  • Avatar of Owen C.
    Owen C.
    ยท
    ยท

    Hey Mathew, thanks for reaching out and sorry to hear this has been a bit brutal. When you say "filter lists of objects using a formula" are you referring to this menu here? Also would love to hear a bit about what you're trying to filter for in this example so I can share this with our team. :) https://downloads.intercomcdn.com/i/o/w28k1kwz/1323388997/242096fdf472c3f3b36a7e0350fa/CleanShot+2025-01-06+at+13_28_46%402x.png?expires=1736190000&signature=88bab5deda2fe2c1aa9538a3cb2e8cd8c51d3300b0e698772d66c6f0c3fab2d6&req=dSMlFcp2lYhWXvMW1HO4zYSdauj6Ac5RL74sMRndN5%2FMQZ8GWw%2B4Z5SIbyg6%0AHPoo%0A

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    No I'm talking about the "Filter list of objects" enrichment

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    You shouldn't need an enrichment to filter a list of objects -- it's much easier to do it via formula

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    For example, I'm fetching decision makers. I want to run the following filter:

    • If there is 1 contact in the list, return the contact

    • If there is 1+ contacts in the list, return the first contact where title does not equal CTO / Chief Technology Officer

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    If I could make a formula to filter the objects this would be easy -- almost impossible using the enrichment

  • Avatar of Owen C.
    Owen C.
    ยท
    ยท

    Got it, makes sense. Curious, in your example where is the association made between the job title and object? Is it within the same list? or somewhere else?

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    What do you mean exactly? Title is a property on the objects in the list

  • Avatar of Owen C.
    Owen C.
    ยท
    ยท

    Ahh okay cool, do you mind sharing the URL to the table over would love to take a closer look?

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    I'm filtering the list returned from the "Clay Find Contacts" enrichment

  • Avatar of Mathew I.
    Mathew I.
    ยท
    ยท

    Right now I need 2 separate enrichment columns (not ideal) and have no way to run the filter I mentioned above

  • Avatar of Bo (.
    Bo (.
    ยท
    ยท

    Hey, thanks for reaching out Matthew - I hear you, let me show you what you can do here instead: https://cln.sh/MM7DSv86 Summary Using JSON.parse({{Input}}) inside of a Write to Other Table (make sure the data you add has [before and after] and add it in the List Input) to then parse all the values that fit your criteria inside of a new table as individual columns.

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Hey there - just wanted to check in here to see if you needed anything else! Feel free to reply back here if you do.

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Hi Mathew I.! This thread was recently closed by our Support team. If you have a moment, please share your feedback: