Pass scoutId to make query dynamic