Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Execute Stored Procedure V2 body parsing

(0) ShareShare
ReportReport
Posted on by 113

I have a flow the takes an HTTP response an then uses an Execute Stored Procedure V2 to import the data into an SQL Server db.  This all works fine.

 

Now, I want to have the Store Procedure return a string containing multiple bits of information: status (Success, Failure), identity, ... for a total of 4 elements so they can be use to build and send the appropriate e-mail to the user.

 

My question is, how can I parse the Execute Stored Procedure V2 return so as to split the return into individual variable for used thereafter?  What action?

 

Thank you.

  • Verified answer
    DanielPineault Profile Picture
    113 on at
    Re: Execute Stored Procedure V2 body parsing

    Entirely my fault, wrong brackets!  For anyone else, should be

     

    split(outputs('Execute_stored_procedure_(V2)')?['body'], '|')[0]

  • DanielPineault Profile Picture
    113 on at
    Re: Execute Stored Procedure V2 body parsing

    I tried building a Initialize Variable action with a Value of

     

    split(outputs('Execute_stored_procedure_(V2)')?['body'], "|")[0]
     
    but it won't allow it?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1