Re: The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_3')?['id']' is of type 'Integer'. The result must be a valid array.
I can't be immediately sure, but I suspect that there's no need to run embedded/double Apply to each loops, and possibly no need for them at all.
You might be better served with an initial filter and/or select action, *then* perhaps an Apply to each loop to add each item.
One request, if you don't mind, @Anonymous ... If possible, could you edit into your question a code sample of what the initial List Jobs call responds with? Just make sure to obfuscate/block out any sensitive data, for example replace URLs with something like startpage dot com. 👍
If that data is something I can grab myself, just lemme know the connector and I'll pull some sample data.