Get job activity Modern folder


I want to get the jobs information from the cloud Orchestrator. For this I used the get jobs activity, but it is not working correctly. I used the get jobs activity and a for each to loop through all the jobs. I am using a write line to get the processname.

This is working when I am connected with a classic folder. But when I want to get the jobs from a modern folder it is not working and I get an empty output from the get jobs activity. Does anyone know what the problem could be and how I can solve this?