Skip to main content

Notifications

Copilot Studio - General
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

[Adaptive cards] How to have ForAll within ForAll?

Posted on by 7
Hi,
 
 
i need help on the adaptive card regard how "ForAll is within a ForAll"
 
i had read through
 
still dont understand, i create a simple version as below to test, but going no where,
guidance would be much appreciated!
 
sample data
{
  "Table1": [
    {
      "sku": "fruits",
      "records": [
        {
          "name": "apple",
          "price": "$3"
        },
        {
          "name": "grape",
          "price": "$5"
        }
      ]
    },
    {
      "sku": "vegetables",
      "records": [
        {
          "name": "potato",
          "price": "$2"
        }
      ]
    }
  ]
}
 
 
the adaptive cards formula
{
  type: "AdaptiveCard",
  '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
  version: "1.0",
  body: [
    {
      type: "Container",
      items:
        ForAll(Topic.Answer.Table1,
                {
                  type: "TextBlock",
                  text: sku,
                  wrap: true
                }
       
        )
    }
   
  ]
}
 
 
obtained result
 
 
how to show the records within each category? liket his
fruits
apple, 5
grape, 5
 
vebetables
potato, 2
 
 
 
thanks
Jonathan
 
Categories:

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard