Skip to main content

Notifications

Topic Creation & Management
Answered

PVA - Adaptive Card Multi-select

Posted on by 12

Hi,

We are working on a PVA solution, where-in we are trying to use the preview feature. When we try to add an adaptive card with multiselect options, we are not getting the response from the Adaptive card.

 

Below is the adaptive card template that we are using.

 

 

{
 "type": "AdaptiveCard",
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.3",
 "body": [
 {
 "type": "Input.ChoiceSet",
 "id": "myInformations",
 "label": "What are all information should present in the letter",
 "isMultiSelect": true,
 "choices": [
 {
 "title": "Basic Annual Salary",
 "value": "Basic Annual Salary"
 },
 {
 "title": "Home Address",
 "value": "Home Address"
 },
 {
 "title": "Position",
 "value": "Position"
 },
 {
 "title": "Primary Work Location",
 "value": "Primary Work Location"
 },
 {
 "title": "Date Of Hire",
 "value": "Date Of Hire"
 },
 {
 "title": "Hours Per Week",
 "value": "Hours Per Week"
 }
 ]
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "Submit",
 "style": "positive",
 "associatedInputs": "auto",
 "id": "myInformationSubmit"
 }
 ]
 }
 ]
}

 

 

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: PVA - Adaptive Card Multi-select

    I used https://adaptivecards.io/designer/, pasted your JSON, and used the preview mode to see the output. 

  • aasirvatham Profile Picture
    aasirvatham 12 on at
    Re: PVA - Adaptive Card Multi-select

    Thank you so much @HenryJammes . This worked just fine.

     

    On another note, in general how do we see what is the response from an Adaptive card selection?

     

    Regards,

    Arun Kumar

  • Verified answer
    HenryJammes Profile Picture
    HenryJammes on at
    Re: PVA - Adaptive Card Multi-select

    Thanks for catching this @aasirvatham,

     

    Looks like we wrongly interpret the output as a table when the adaptive card in fact returns a comma separated list of values in a string.

     

    If you switch to the code editor view, can you replace the adaptive card outputs to this?

     

          outputType:
            properties:
              actionSubmitId: String
              myInformations: String

    It should then work:

     

    HenryJammes_0-1684319498884.png

     

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…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics