Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Problem Power Virtual Agents with SQL return Values Back to PVA

(0) ShareShare
ReportReport
Posted on by 5

I run a simple Flow in PVA, the Flow run a stored Procedure and i want to return the result back to PVA but if i select the Result Value i get the following Error 

SQL.PNG

Categories:
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Problem Power Virtual Agents with SQL return Values Back to PVA

    Hi @msuser33 ,

     

    Yes, you got an error because you are trying to insert a list value in an output string, Power Automate recognizes that is incompatible.

     

    If you want to get the last value (because when you execute a procedure, return one or more than one item), follow these steps:

    - Create an action called "Initialize variable" with type string on the beginning of the workflow

    - Create an action called "Set variable", after the SQL action, select your created variable and the value will be the Dynamic content called "ResultSets...".

    - Inside the final PVA action, use the variable created instead of "ResultSets"

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

Announcing the Engage with the Community forum!

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Pablo Roldan Profile Picture

Pablo Roldan 49

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 40

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard