How to run a conditional + edit function stack?
Options
tomas_riegos
Member ✭
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
Tagged:
Best Answer
-
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.
- Create var: today
- 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
-
Yes! It works, that's incredible guidance, thanks so much Michael!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback