Skip to main content


Calling Actions from Copilot Studio

How to return a list value to PVA

Posted on by 10



I have a multiple rows of data for a single District Name which is also a column value. When user input the district name, how to search and get all the multiple rows of data for that district and display it in PVA Chat  Bot. If I use "List Rows Present In a Table", it does not allow the row values to get displayed in the Return action stating error as :  "The output you selected is inside a collection and needs to be looped over to be accessed. This action cannot be inside a foreach."


Total no of columns is 5.


what is the solution, please suggest.


  • Pstork1 Profile Picture
    Pstork1 63,059 on at
    Re: How to return a list value to PVA

    Another way to do this is to use the markdown features and Append to a string to create a formatted table to return to the Chat.  The table can then be displayed as a list.  Take a look at the following article.

    How to make your Teams bots richer with markdown – Vesa Nopanen – My Teams & Microsoft 365 Day (

  • Verified answer
    Jcook Profile Picture
    Jcook 7,765 on at
    Re: How to return a list value to PVA

    Hello @KarthikLohan 


    Unfortunately, you cannot pass arrays back to PVA at this time.


    As a work around you can do the following:

    Add a String Variable, Inside the Loop use an Append to String Variable action (This is used to add all the data from the Loop into one variable).



     Now outside the Loop you can pass in the String Variable back to PVA:



Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…


WarrenBelz Profile Picture

WarrenBelz 137,998

RandyHayes Profile Picture

RandyHayes 76,308

Pstork1 Profile Picture

Pstork1 63,059


Featured topics