Actually, I'm able to get the number of files from Result.NoFiles. As you previously mentioned, the issue is that I'm not able to set a variable to the value of {TASK(PrevTask,Result.NoFiles)} . When I check the value of the job variable after setting it to {TASK(PrevTask,Result.NoFiles)} , the value is blank. Is there a bug with that functionality?