I have a PVA (Power Virtual Agent) that asks users a series of questions before triggering a flow. This flow interacts with an SQL Server to retrieve specific rows of data. Within the flow, I use 'Apply to each' and 'Append to array variable' actions to build an array of results. I am trying to pass this list back to PVA to then use it to ask another question to my users listing the options that are in my results.
However, when trying to build the question card I'm getting an error telling me the display name is missing, and when i look at the code it tells me that the display name is not allowed...
I take my JSON and turn it into a record and then extract the field into a table for which I'm trying to pass as a variable options to the question
Magic. Converting my JSON response to have a name field for "DisplayName" worked. I didn't originally follow that it was looking for that as a name in my name/value that I returned.
Thank you Kashyap
Hi @garrybd6 ,
When the table (options from a list variable) element is of type record, then it must contain a field called "DisplayName" that PVA uses to render as a suggested action buttons.
For example, in the screenshot below, you can see that the table has 2 records and that each record has a DisplayName field (in addition to k1 and k2).
This lets d1 and d2 to be rendered as suggested action buttons as shown below
Here's a textual representation of the yml shown above
Pablo Roldan
9
stampcoin
8
Romain The Low-Code...
8