Hi,
The flow that I have built pulls a table from an SQL stored procedure and then emails the contents to the relevant individuals.
I have to do this for multiple products and then email to the relevant product team. So I have included a variable in the stored procedure to filter the table by Product, however how do I automate this process in flow, by changing the variable, then rerunning the flow and sending the email to a different product team?
I know that i could just create 3 different flows dedicated to each product team. But if it is possible i'd like to keep it within the same flow.
Thanks in advance
Solved! Go to Solution.
Hi @jack3 ,
Expanding on what @PrasadAthalye stated correctly.
A picture is worth thousand words...Here's an example with a different twist.
Source
Flow
Results
This example loops through the product table, passes the Product id to the Stored Proc to get the email, parses the results from the SP, and emails the proper recipients. Tweak to your liking - hopefully you get the gist.
Cheers,
Aman
------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------
@jack3 - Yes. You can call procedure 3 times within same flow and then use SendEmail action after that to send output. It should work perfectly fine.
Like and Mark this as answer if it resolves your issue.
@jack3 - You can accept parameter to stored Procedure and within the procedure write select statements with if conditions based on the parameter passed. then in the flow, add SQL actions 3 times and call same procedure but just passed different parameter values based on your need and then later use email action.
Like and Mark this as a solution if this resolves your issue.
Hi @jack3 ,
Expanding on what @PrasadAthalye stated correctly.
A picture is worth thousand words...Here's an example with a different twist.
Source
Flow
Results
This example loops through the product table, passes the Product id to the Stored Proc to get the email, parses the results from the SP, and emails the proper recipients. Tweak to your liking - hopefully you get the gist.
Cheers,
Aman
------------------------------------------------------------------------------------------------------
If my post helps you with your problem or answers your question, please mark it Solved or Answered. This helps anyone with similar challenges. If you like my response, please give it a Thumbs Up.
------------------------------------------------------------------------------------------------------
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
29 | |
29 | |
27 | |
20 | |
11 |