ISC Workflows - Filter array in a loop

Hi team,

I’m trying to filter the list of attribute changes in a loop like this but the filter inside Verify Data Type 1 does not work.
The loop input is $.trigger.changes and the filter is $.loop.loopInput[?(@.attribute== “attributeA” || @.attribute==“attributeB” || @.attribute==“attributeC”)]

I would like to perform the loop actions for these three attributes. Do you have any suggestions?

Inside a loop, each of the items from loopInput is handled per iteration. So, if the input is $.trigger.changes which happens to be an array, each time just one of the items inside the array is read.

Hence, you need 3 filters

  1. $.loop.loopInput.attribute Equals atttributeA
  2. $.loop.loopInput.attribute Equals atttributeB
  3. $.loop.loopInput.attribute Equals atttributeC

If 1 is false, check for 2. If 2 is false check for 3.

If any of them is true directly go to next step skipping following filters

Hi Nithesh,
I was able to do it in the way you suggested and with the Compare Strings operator.

Thanks!