Clay Icon

How to Deduplicate and Keep the Latest Record in a Table Sorted by Created Date

Β·
Β·

if I have duplicates, I can dedupe, and the first record on the table will be keep and the next ones deleted as duplicates If so, can I sort by createdDate desc, so I can keep the latest record instead?

  • Avatar of Clay Team
    Clay Team
    APP
    Β·
    Β·

    Hi Esteban, thanks for getting in touch! Yes, this will work

  • Avatar of Esteban L.
    Esteban L.
    Β·
    Β·

    how do I access to createdDate in formula? because I can't see it in Sort, so I believe I need to creata a formula field base on createdDate and then sort by that

  • Avatar of Esteban L.
    Esteban L.
    Β·
    Β·

    moment({{created_at}}).format('MM/DD/YYYY') ?

  • Avatar of Clay Team
    Clay Team
    APP
    Β·
    Β·

    You can add a column designed for this purpose