How to get specific index/value from a list (JSON)

Troubleshooting

Hi,

basically i want to check EU VAT numbers for their validity.

Where i have a API CALL to VIES and saving the results in a App State. That works so far fine.

Now i want to have a conditional action, if the VAT number somewhere in the list is existing it should update the list at the sppecific index where the VAT number is present.

The list looks like this (JSON) (Just an example)

{"vatNumber":"NL810462783B01","lastUpdate":"2024-09-18T13:23:48.199Z","name":"SHELL CHEMICALS EUROPE B.V.","address":"\nWEENA 00505\n3013AL ROTTERDAM\n","valid":true}

So, i need to check in the whole list in "vatNumber": if the current checked VAT is present and proceed with my conditional action.

What have you tried so far?

I have already created the conditional action but i dont know how to get the specific value from all items in the list. Now i tried to use "List contains item", but that one seems not to help.

For example if i use "Create Map (JSON)", i need to check for all values

e.g. vatNumber, lastUpdate, name, address & valid. But this is not what i want.

How i can map only the "vatNumber" and check if its somewhere in the list existing?

Did you check FlutterFlow's Documentation for this topic?
No
1 reply