web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerApps -> Execute S...
Power Automate
Unanswered

PowerApps -> Execute Stored Procedure -> (NEED HELP HERE) Create Excel file with results and email

(0) ShareShare
ReportReport
Posted on by 10

Hey all,

 

I have a flow set up to gather filtering parameter settings via PowerApps for a stored procedure executing over an on-premises SQL server. I have it configured now to appropriately execute the stored procedure with all ~20 parameters and it functions as intended. However, while I can "view" the "results" of said stored procedure execution (results could be anywhere from no results to ~100k results based on filter parameters).

 

However, what I want to have happen is once the SP is done executing, to have the flow do the following:

  1. Create a new Excel file
  2. Load the data from the SP into the Excel file
  3. Email said file as an attachment to the user (whose email is defined as one of the PowerApps parameters to make things easy)
  4. Delete the Excel file

I know there are limitations within Flow to this end, but I simply have not been able to ascertain how to proceed. Using the "Create File" on SharePoint (for Business) would be an option as I have a Team SharePoint site established that would work for this purpose, but I can't figure out how to make it work. Any assistance would be greatly appreciated. Here's a quick view of my Flow:

flow.png

 

Thanks in advance!

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at

    Hi @ mrb783,

     

     

    Do you want to create a new excel file and then insert the stored procedure to the excel when  the stored procedure is done executing?

     

    Microsoft flow support to insert the date to a existing excel file currently,if you would like to insert the date to a new created excel file in one flow,I afraid that there is no way to achieve your needs in Microsoft Flow currently.

     

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

     

     

     

    Regards,
    Alice Zhang

  • mrb783 Profile Picture
    10 on at

    I apologize, but I'm not understanding your post...but think you're saying I can't do what I'd like to do.

     

    Would it be possible to create a .csv file instead? Either would suffice for my needs.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard