Store ids in array for field