HI,
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.
Karthik
Solved! Go to Solution.
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:
Proud to be a Flownaut!
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:
Proud to be a Flownaut!
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.
Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |