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 / How to use return a st...
Power Automate
Unanswered

How to use return a string from SQL Server Stored Procedure ?

(1) ShareShare
ReportReport
Posted on by 1,724

I want to use my Stored Procedure's return a string value.

For send email which body is then string.

 

Regards,

Yoshihiro Kawabata

Categories:
I have the same question (0)
  • Jaden Profile Picture
    Microsoft Employee on at

    Have you found and tried the Stored procedure SQL action?

     

    It should allow you to run a procedure, and then in a subsequent action it allows you to use the output as part of the action (e.g. sending the SQL procedure's output as part of the body of that email).

     

    (Attaching a screenshot of where you can select this SQL action).

     

    Untitled.png

    Feel free to post again in case you would like more details/help.

     

  • yoshihirok Profile Picture
    1,724 on at

    Hi @Jaden

     

    I use the Action "SQL Server - Execute stored procedure" in my flows.

    and the value "ReturnCode" use in the Condition.

     

     

     

    1.PNG

     

    and, I want to use a string from the Stored Procedure's select.

     

    Regards,

    Yoshihiro Kawabata

  • Community Power Platform Member Profile Picture
    on at

    HI. could you please let me know how to insert the output of sql stored procedure in another table in sql server.

  • PJ Profile Picture
    Microsoft Employee on at

    In order to do this, you can use "select into" if that's what you really want to do.

     
    SELECT MyNeededColumn
    INTO JustMyNeededDataTable
    FROM MyReferenceTable;
     
    If what you're trying to do is simply parse the output of the stored proc, you can create a Condition action and iterate over the values using a For Each.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 291 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 109 Super User 2026 Season 1

Last 30 days Overall leaderboard