Bridge - Filter an Array Object by a Particular Field
I have an array of objects that I need to filter and find a particular field in Bridge.
ex. [{name: 1, id: 123}, {name: 2, id: 321}]
In this case, how would I select the id for the "name" key/field whose value is "1"?
Tags:
Answers
-
I ended up using JS to filter the array as follow:
var newArray = dataArray.filter(function (el) {
return el.name == foldername
});
return(newArray)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives