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 / Capture user response ...
Copilot Studio
Unanswered

Capture user response from botframework dialog to PVA

(0) ShareShare
ReportReport
Posted on by 21

Hi,

I have a scenario wherein I have extended the PVA with botframework composer to create a dialog in the botframework composer, which sends an adaptive card with multi select choice (select all that apply) card. The user selects all the choices that apply and I am trying to pass the values of the selected choices on click of the submit action button.

 

Is there a way for us to capture the user response on the PVA side? I am stuck with trying to do this. Is this even a possibility?

 

Thanks,

Yeshwanth J

Categories:
I have the same question (0)
  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @yjm ,

     

    I'm trying the same. To get he values from a radio button and store in a variable.

     

    See post:https://powerusers.microsoft.com/t5/General/How-to-get-value-from-radio-button-and-store-in-a-variable/m-p/1531479#M3434


    Cheers,

  • yjm Profile Picture
    21 on at

    Thank you! This is great to know! I was able to get the values in PVA.

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @yjm ,

     

    Were you able to get the radio buttons and dropdown values to PVA and display it?

    If yes, please share the steps with the community.

     

    Cheers,

     

    Fernando

  • yjm Profile Picture
    21 on at

    Hi @fernandosilva - Yes, I was able to get the multiple choice field values. You will have to follow the same steps shown in the link that is shared in your post by MonkeyMan - https://powerusers.microsoft.com/t5/Bot-Extensibility/Pass-variable-from-Bot-Framework-back-to-PVA/m-p/1386788#M70 , the steps are quite clear on this link.

     

    You will have to set your output variables at the dialog level and set properties later on. Only use a "String" data type for now, since that is the only data type that is supported. Once you do this, you will automatically get the variables in PVA after publishing the files from bot composer to PVA. Let me know if it works for out for you.

     

    Thanks,

    Yesh

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @yjm ,

     

    Thanks for your reply.

    What I mean is that the value from a radio button that is inside an action like this adaptive card:

    https://adaptivecards.io/samples/ShowCardWizard.html

    but using radio button in one of the subsequent cards like here:

    https://adaptivecards.io/samples/InputsWithValidation.html

     

    I can see the variables on PVA, but the values of the radio buttons are not passing through.

     

    Cheers.

     

  • yjm Profile Picture
    21 on at

    @fernandosilva - Make sure you have checked all the below:

    1. The adaptive card JSON values for your radio button control should be in string format, sample below:

     

    {
     "type": "Input.ChoiceSet",
     "id": "RadioSelect",
     "label": "What color do you want? (expanded)",
     "isMultiSelect": false,
     "style": "expanded",
     "value": "1",
     "choices": [
     {
     "title":"A",
     "value":"1"
     },
     {
     "title":"B",
     "value":"2"
     },
     {
     "title":"C",
     "value":"3"
     }
     ]
     }​

     

    2. Create your output variable in the Dialog instance per the screenshot below:

    yjm_0-1649342930967.png

    3. Set the property in your begin dialog trigger event:

    yjm_1-1649342999881.png

    4. You should now be able to see the final out in PVA as shown in the below screenshot:

    yjm_2-1649343154849.png

     

     

    Hope this helps. I was able to get the value in the variable and display as response from bot per the screenshot above. Make sure it is a "STRING" data type output variable.

     

    Cheers,

    Yesh

     

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    HI @yjm ,

     

    Thank you for your reply.

     

    I will try your set up and let you know if the data passed through.

     

    Cheers,

    Fernando

     

  • yjm Profile Picture
    21 on at

    Were you able to get this to work for yourself?

     

    Thanks,

    Yesh

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @yjm ,

     

    Still didn't try it yet.

    Gonna work on that till end of this week and let you know.

     

    Cheers,


    Fernando

  • yjm Profile Picture
    21 on at

    @fernandosilva  - Any luck yet? Was this resolved for you?

     

    Thanks.
    Yesh

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard