I'm trying to pull a set of active customers and their email then pass them through two different stored procs once a month. The two stored procs I want to create to two HTML tables to format two tables and send in an email to each customer. I'm running into issues with create the HTML tables and then being able to get them into the same email. Any ideas?
Yes, but keep in mind I've been trying many different ways to configure the apply to each for the stored procs. I just redid it to the basic starting level without all the For Each actions to build the HTML tables and variables. I think I have to append to the array variables then create the HTML tables. Once the HTML tables are built though, they're both in their own apply to each loop and can't be put into the same email. Here is a stripped down overview of the process without most of the clutter. If you want me to try and build a bit more with the variables and HTML tables, let me know. Once I do that it puts each step into its own apply to each loop and just gets messy.