Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save expiscornovus/6a1874d6b77c9eb07a7d2f94c4846bef to your computer and use it in GitHub Desktop.
Save expiscornovus/6a1874d6b77c9eb07a7d2f94c4846bef to your computer and use it in GitHub Desktop.
D365FO Sales Order Delivered Alert Adaptive Card
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"id": "ubsTitle",
"text": "Order is Delivered",
"horizontalAlignment": "Left"
},
{
"type": "Container",
"items": [],
"minHeight": "5px"
},
{
"type": "ColumnSet",
"spacing": "small",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Customer",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "Sales Order Number",
"weight": "Bolder"
}
]
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "@{body('Parse_JSON')?['KeyValue2']}"
},
{
"type": "TextBlock",
"text": "@{body('Parse_JSON')?['KeyValue1']}"
}
]
}
]
},
{
"type": "Container",
"items": [],
"minHeight": "5px"
},
{
"type": "TextBlock",
"text": "Delivery Location",
"weight": "bolder",
"size": "large",
"id": "ubsDeliveryLocation"
},
{
"type": "Container",
"items": [],
"minHeight": "15px"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "Street",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "Zip Code",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "City",
"weight": "Bolder"
}
]
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"text": "@{outputs('Lists_items_present_in_table_-_SalesOrderHeadersV2')?['body/value']?[0]?['DeliveryAddressStreet']}"
},
{
"type": "TextBlock",
"text": "@{outputs('Lists_items_present_in_table_-_SalesOrderHeadersV2')?['body/value']?[0]?['DeliveryAddressZipCode']}"
},
{
"type": "TextBlock",
"text": "@{outputs('Lists_items_present_in_table_-_SalesOrderHeadersV2')?['body/value']?[0]?['DeliveryAddressCity']}"
}
]
}
]
},
{
"type": "Container",
"items": [],
"minHeight": "5px"
},
{
"type": "Input.Text",
"placeholder": "{You can give your feedback here}",
"style": "text",
"isMultiline": true,
"maxLength": 200,
"id": "ubsComments"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Confirm"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment