How to run a conditional + edit function stack?

Options

I assume loop would be the way to solve this, but I can't seem to get it to work.


Quick loom here :  https://www.loom.com/share/a6e67f13485b4373bbc4369d3e718455

Best Answer

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Answer ✓
    Options

    Hi @tomas_riegos - thanks for the detailed Loom, it's always very helpful.

    I'd make a couple of small adjustments here. First, I'd actually introduce your last_modified < today in the Query itself: This way you would only be getting back records that match both your filters... Then you can use the For Each Loop through the results like you have to Edit the records.

    1. Create var: today
    2. Query All Records

    Where db: joinedGoals.user_id == auth ID

    AND db: joinedGoald.lastModified < var: today

    3.For each Loop: joinedGoals

    3.1 Edit record

Answers