If a certain machine state is detected (whatever that may be, say "Software XYX Package installed"), we generate an email to the support team via an agent procedure. In the email, we include a few details about the machine. However, one set of details that would be particularly beneficial would be the recently-completed procedures as well as any pending procedures.
This is a shot-in-the-dark, as it has always been a wishlist item for me. However, I never really believed that it was possible so I never bothered to post it here.
Overall, the real goal is to populate variables in a procedure with the 5 most recent procedures in the history, as well as all pending procedures. If anybody has any idea if/how this could be accomplished, I'd appreciate any knowledge you could share.