I have a node which is outputting data in this format:
I then have a node which selects the right item from this data. The issue I am having is that someitmes new items get added to this array, so the index of e.g,14 is no longer relevant to the item that I want to pull. It would now be 15. Is there anyway I can get around this? Each Item has an ID that is unique to it so if I can somehow say I only want the item which has X id that could work?
Here’s the example that might help (you will have to connect the Item Lists1 node to the node that returns the input)
This workflow is first returning the attributes from the data. Then using the IF node, we are checking for the specific attribute. The true output will return only that specific attribute. We are then using another Item Lists node to return the nested options. I hope this helps
I want to pull out the data from one of these items, depending on what the unique ID associated with it is. For example I want I want the data from the options array of the item with id “660264…”. How would I go about doing this?
You can repeat the same nodes. Check for the ID using the IF node, extract the options using the Item Lists node, and use another IF node to return the specific option.