Updating "addons" value
Hello, so I want to update the value in my response, because the timestamp gets displayed incorrectly in my bubble app.
This is how the response looks -
and I am trying to run a "for each" loop to update all of the "created_at" values,
Tried it in several different ways, but none seem to work, I just keep getting the same error
Anyone has a suggestion? Thank you! 😅
Best Answer
-
THere is a filter called "has" for detecting whether a given key is present on an object. Useful in this context.
If item filter: has value: "_gmbsbyid" = true...
Answers
-
Can you look at the debugger and see what the input was for this statement? Maybe there is no gmbsbyid for that record?
-
-
Thank you both, looking at the debugger now, the gmbsbyid is in fact missing for one of the records, how would I correctly skip it in that case?
Tried adding a "Conditional if" item._gmbsbyid != null
But it's still not happy about it not being there 😅
Thank you!
-
Hey @tomas randomas - you can also use the GET filter - IF var: item | GET _gmbsbyid default null | does not equal null... etc.
-
Thanks! Resolved using "has" filter, cool to learn something new!
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