Return one object form array that has matching ID
Options
dorian
Member ✭
Hi there
I am receiving an array in a response from Stripe - see below. How do I filter the array to return only the object that has an ID matching what I want? I'm sure this is a common ask but I couldn't find an answer searching here. Thanks.
Best Answer
-
Hi, I think what you are looking for is data manipulation → Arrays → find first element. You can specify the array and the filter there.
Answers
-
Thanks @Pawel Magdanski that worked once I figured out I had to use $this in the expression builder. 😀
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