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 / Copilot Studio / Problem Power Virtual ...
Copilot Studio
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:
I have the same question (0)
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    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

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 > Copilot Studio

#1
Valantis Profile Picture

Valantis 400

#2
chiaraalina Profile Picture

chiaraalina 134 Super User 2026 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 98 Moderator

Last 30 days Overall leaderboard