Ability to Include Recipe Function Result Schema in Job Report Customization
Job Report - Ability to Include "Result Schema" from a Recipe Function When creating Recipe Functions I often find myself exiting the Function and returning one or more values to the calling Recipe (see first screengrab). This is very handy but it does create an issue when customising the Job Report for the Function. That's because when customising the Job Report you're expected to choose the output from a discrete step in the Recipe to show in the output (see second screengrab). But the precise step at which the Recipe Function will exit depends on the exact logic followed for that particular Job, Referencing the first screengrab, one job might exit via Step 6 but another via Step 7. Since my code often has multiple Return points it gets very messy trying to include all of them (and it's a bit incoherent) so I don't bother. And therefore I hardly every use the facility to customise the Job Report - and that's almost criminal! So my suggestion is that, when working with a Recipe that happens to be a Recipe Function, there would be an ability to select from the "Result Schema" defined for that Recipe when customising the Job Report (see third screengrab). That way, regardless of which logic path any particular job took, it would be possible to see the returned values (in this case "Result" and "Notes") from the Recipe Function. In fact, it seemed so obvious to me that this is how it should work that I struggled at first to understand what was going on and why the Job Report only had values populated for Result and Notes some of the time. I can't believe I'm the only one who would find this useful. (Or perhaps I'm missing/misunderstanding something...?).
