Clay Icon

Filter One Array Based on Non-Existent Names in Another Array

ยท
ยท

Hi -- I have 2 arrays of different objects. I want to filter 1 list, for all items where "name" does not appear in the 1st list. How do I do that simply?

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    You can use the Filter List of Objects action to accomplish this. Here's how:1. Select the array you want to filter in the "Array of Objects" field 2. Set "Filter Field" to "name" 3. Choose "Does Not Contain Any Of" as your Filter Mode 4. In the "Value(s)" field, enter your comparison array values separated by commasThe output will give you a filtered array containing only the objects where the name matches your criteria. Sources: Filter List of Objects with Clay Comparison operators | Clay University

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

    Works -- thanks

  • Avatar of Channeled
    Channeled
    APP
    ยท
    ยท

    Great! I'm here if you need any further assistance.

  • 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: