Hi. I have an SP running on an on-premise SQL database (through a gateway) that I need to return the result set to an excel file using Power Automate, but I am having a problem with the most basic aspect of this. To simplify the troubleshooting, I have the query within the SP first write its result sets to an actual table and I then return a select * from the actual table. The SP works fine though SSMS.
When I test the SP through flow, it writes to the actual table in the on-prem database and the flow says that it successfully runs, but when I try to add an additional Data Operation ('Select'), a ResultSets Table 1 is not available (see yellow highlight in image) for the SP in the Dynamic Content. The ResultSets itself is available but if you select that for the From, that does not then unlock the ability to select the columns in the Maps as I understand that I should be able to do so from various sources. This seems so basic, but I've been stuck on this for days. Any help appreciated.

Report
All responses (
Answers (