19
Views
3
Comments
Solved
Filtering an object in an API data action response
Question
Application Type
Reactive

i am currently trying to get a response from a data action to show the correct language object.

The response form the call looks like this:

This is the structure from the data action:

im still very new to development as a whole and OutSystems Low code is my first venture, i have tried for days and i cant find any solution that brings back only the en

How can i achieve this please.

Solution

Hi Mikeyxb

It appears the Effect_entries is a list and  Language is just a simple structure so you should be able to use the action ListFilter to filter the list.

This action is in the system actions, you may need to reference it, depending where you want to do the filter there is a server and a client action: 

However, it appears you are integration with some API so I would check in the API documentation if it supports already the filter you want to do :) 

Regards,

Rúben


Thank you i managed to find the filter and apply this using the following method.


and then assigned the filtered list to my expression 

Hi,

Can you explain better what are you trying to accomplish?

Can you show the Proprieties of "Language" Object inside "Effect_entries", please?

Solution

Hi Mikeyxb

It appears the Effect_entries is a list and  Language is just a simple structure so you should be able to use the action ListFilter to filter the list.

This action is in the system actions, you may need to reference it, depending where you want to do the filter there is a server and a client action: 

However, it appears you are integration with some API so I would check in the API documentation if it supports already the filter you want to do :) 

Regards,

Rúben


Thank you i managed to find the filter and apply this using the following method.


and then assigned the filtered list to my expression 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.