web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 115 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 83

#3
anirudhev Profile Picture

anirudhev 74

Last 30 days Overall leaderboard