Forum Discussion

adityamohanty's avatar
adityamohanty
New Contributor II
2 years ago
Solved

Running Rest API in a loop where Page count is fixed variable

Step -1  Rest API to get the collection info looks like  https://stage-data.xyz.com/v1/xyz-api/collections/models/info?page_size=100 Output: {     "total_count": 5099,     "page_count": 51, ...
  • Supratim's avatar
    2 years ago

    vfantidou  Please use below expression-. From your example seems there are some typo (2nd record in input0 should have ID not ID_NUMERIC). If it's not typo you need make null safe in mapper.

    input0.filter((val,index)=> $filterData.find((ele)=> ele['ID'] ==val['ID'] ) != null )