Ok. So, I've looked everywhere I can think of and I need help, please.
I'm creating a stored procedure that will look through a particular table for a purchase requisition (we call them AVOs) that hasn't had activity for over 3 days. I'm trying to dynamically pick up the person who created it and have this alert send to them. I've got the rest of the script taken care of, but I'm having a hard time getting an idea of how to create a recipient list dynamically based on this parameter. I'd prefer not to hard code it as our sales team does change, but at this point, I just want it to work.