Skip to main content
Community site session details

Community site session details

Session Id : +pdmfcPywCZqEGUCLxpcMU
Copilot Studio - General
Answered

Exception while asking with adaptive card-Missing required property 'Output' and 'OutputType'

Like (0) ShareShare
ReportReport
Posted on 14 May 2024 15:00:10 by 4
Hello everyone, i'm trying to create an adaptive card with a number of input that depends on the length of the array of strings Topic.KeywordTable.
This is the adaptive card formula:
{
  type: "AdaptiveCard",
  version: "1.5",
  body: [
    {
      type: "TextBlock",
      text: "Some text.",
      wrap: true,
      weight: "bolder",
      horizontalAlignment: "center"
    },
    {
      type: "Container",
      items: ForAll(Sequence(CountRows(Topic.KeywordsTable)),
        {
          type: "Input.Toggle",
          id: "Keyword" & Value,
          title: Index(Topic.KeywordsTable, Value).Value,
          separator: true,
          spacing: "medium"
        })
    }
  ],
  actions: [
    {
      type: "Action.Submit",
      title: "Proceed"
    }
  ]
}
Below the card i get Output(0) and it gives me an error about missing Output and OutputType properties
  • Verified answer
    BhaskarDhone Profile Picture
    1,129 Super User 2025 Season 2 on 16 May 2024 at 07:46:43
    Re: Exception while asking with adaptive card-Missing required property 'Output' and 'OutputType'

    Try this , it should work.

    {
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.5",
     body: [
     {
     type: "Container",
     items: ForAll(Sequence(CountRows(Topic.KeywordsTable)),
     {
     type: "Input.Toggle",
     id: "Keyword" & Value,
     title: Index(Topic.KeywordsTable, Value).Value,
     separator: true,
     spacing: "medium"
     })
     },
     {
     type: "ActionSet",
     actions: [
     {
     type: "Action.Submit",
     title: "Action.Submit"
     }
     ]
     }
     ]
    }
  • Sublimion Profile Picture
    4 on 15 May 2024 at 06:19:58
    Re: Exception while asking with adaptive card-Missing required property 'Output' and 'OutputType'

    Topic.KeywordsTable is (you guessed it) of type table.
    Jokes aside, it is a table generated from a string using Split(Topic.Keywords, " ") (where Topic.Keywords is a string of keywords).
    I want to use this adaptive card to show a dynamic list of those Keywords (hence why i'm trasforming the string in a table to be used in the ForAll function) and i want to use the Input.Toggle so that the user can select the wrong keywords that should be forwarded as the output so that i can append them to a global variable of mine that stores stopwords.
    Index is used to access the Value key-value pair for each element inside the Topic.KeywordsTable table.
    Hope i was clear enough

  • BhaskarDhone Profile Picture
    1,129 Super User 2025 Season 2 on 14 May 2024 at 17:10:22
    Re: Exception while asking with adaptive card-Missing required property 'Output' and 'OutputType'

    Problem is with adaptive card and hence getting output related error.

    Can you share more info like how your Topic.KeywordsTable is look alike and what is your objective of using Index. How you want things to render.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Loading complete