title: Send a adaptive card with data in python using 1.2 version
body: <p>Based on the below, I have a card template and data separately as json.</p>
  
  <p><a href="https://adaptivecards.io/samples/FlightItinerary.html" rel="nofollow noreferrer">https://adaptivecards.io/samples/FlightItinerary.html</a></p>
  
  <p>But i am not sure how to send data through python for the below card. I cant find a documentation examples for template and data for python.
  How do I send data to this card through python</p>
  
  <pre><code>    # code for adaptive card
      reply = MessageFactory.list([])
      reply.attachment_layout = AttachmentLayoutTypes.carousel
      reply.attachments.append(CardFactory.adaptive_card(LIST_JOB_CARD_CONTENT))
      await step_context.context.send_activity(reply)
  </code></pre>
  
  <pre><code>LIST_JOB_CARD_CONTENT ={
  "type": "AdaptiveCard",
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.2",
  "body": [
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "Job Number",
  "size": "Small",
  "weight": "Bolder",
  "color": "Accent"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "Job Status",
  "fontType": "Default",
  "size": "Small",
  "color": "Accent",
  "weight": "Bolder",
  "horizontalAlignment": "Center"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "Design Reference",
  "weight": "Bolder",
  "color": "Accent",
  "size": "Small",
  "horizontalAlignment": "Right"
  }
  ]
  }
  ],
  "style": "default",
  "spacing": "Small",
  "horizontalAlignment": "Center",
  "height": "stretch",
  "minHeight": "5px"
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.JobNumber}",
  "size": "Medium",
  "color": "Good",
  "weight": "Bolder"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.jobStatus}",
  "weight": "Bolder",
  "color": "Attention",
  "size": "Medium",
  "horizontalAlignment": "Center"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.DesignReference}",
  "size": "Medium",
  "weight": "Bolder",
  "color": "Good",
  "horizontalAlignment": "Center"
  }
  ]
  }
  ],
  "style": "default",
  "spacing": "Small",
  "horizontalAlignment": "Center",
  "height": "stretch"
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "250px",
  "items": [
  {
  "type": "TextBlock",
  "text": "Customer Name",
  "size": "Medium",
  "weight": "Bolder",
  "color": "Accent",
  "horizontalAlignment": "Center",
  "spacing": "Medium"
  }
  ],
  "backgroundImage": {
  "horizontalAlignment": "Center"
  },
  "spacing": "Small"
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "Promotion",
  "horizontalAlignment": "Center",
  "size": "Medium",
  "weight": "Bolder",
  "color": "Accent"
  }
  ]
  }
  ],
  "id": "CustomerName"
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "250px",
  "items": [
  {
  "type": "TextBlock",
  "horizontalAlignment": "Center",
  "text": "${$root.CustomerName}",
  "wrap": True,
  "size": "Medium",
  "fontType": "Monospace",
  "color": "Good",
  "weight": "Lighter"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.Promotion}",
  "horizontalAlignment": "Center",
  "fontType": "Monospace",
  "size": "Medium",
  "color": "Good"
  }
  ]
  }
  ]
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "50px",
  "items": [
  {
  "type": "TextBlock",
  "text": "Brand-&gt;",
  "size": "Small",
  "weight": "Bolder",
  "color": "Accent"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.Brand}",
  "id": "brand",
  "wrap": True,
  "size": "Medium",
  "color": "Warning",
  "horizontalAlignment": "Right"
  }
  ]
  }
  ]
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "100px",
  "items": [
  {
  "type": "TextBlock",
  "text": "RangeName-&gt;",
  "fontType": "Default",
  "size": "Small",
  "weight": "Bolder",
  "color": "Accent"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.RangeName}",
  "size": "Medium",
  "color": "Warning",
  "horizontalAlignment": "Right"
  }
  ]
  }
  ]
  },
  {
  "type": "ColumnSet",
  "columns": [
  {
  "type": "Column",
  "width": "60px",
  "items": [
  {
  "type": "TextBlock",
  "text": "Variety-&gt;",
  "size": "Small",
  "weight": "Bolder",
  "color": "Accent"
  }
  ]
  },
  {
  "type": "Column",
  "width": "stretch",
  "items": [
  {
  "type": "TextBlock",
  "text": "${$root.Variety}",
  "horizontalAlignment": "Right",
  "size": "Medium",
  "color": "Warning"
  }
  ]
  }
  ]
  }
  ]
  }
  
  
  
    [1]: https://i.stack.imgur.com/YkjO4.png
  </code></pre>