I tried this code below but the logged output of the loop is coming up as 3649 which are not id numbers in the array being passed.
The array as being passed: