{ "statusCode": 200, "type": "application/vnd.microsoft.card.adaptive", "value": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.4", "body": [ { "type": "Container", "padding": "Medium", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "padding": "Small", "width": "auto", "items": [ { "type": "Image", "url": "https://ac-cp.deltek.com/CPWeb/images/CP_Notification.png?v=2", "style": "Person", "size": "Stretch", "width": "50px", "spacing": "None", "height": "50px" } ], "horizontalAlignment": "Center", "verticalContentAlignment": "Center", "spacing": "None" }, { "type": "Column", "padding": "Small", "width": "stretch", "style": "default", "horizontalAlignment": "Left", "items": [ { "type": "TextBlock", "id": "5", "text": "Costpoint Approval Workflow APMVCHR Simple", "wrap": true, "size": "Medium", "weight": "Bolder" }, { "type": "TextBlock", "text": "Case # 331", "wrap": true, "spacing": "None", "weight": "Bolder" }, { "type": "TextBlock", "text": "Manage Accounts Payable Vouchers", "spacing": "Small", "weight": "Bolder", "wrap": true } ] } ], "padding": "None" } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "wrap": true, "weight": "Bolder", "text": "Workflow is complete:", "size": "Medium", "color": "Good" } ], "horizontalAlignment": "Left", "padding": "None", "verticalContentAlignment": "Bottom" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Case completed on 04/19/2024 05:17", "wrap": true, "size": "Default" } ], "padding": "None", "verticalContentAlignment": "Bottom" } ], "padding": "Small", "style": "emphasis", "separator": true, "spacing": "None" }, { "type": "Container", "id": "cardContent", "isVisible": false, "horizontalAlignment": "Center", "items": [ { "type": "Container", "padding": "Small", "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "Open record in Costpoint", "id": "open", "url": "https://ac-cp.deltek.com/CPWeb/?app=APMVCHR&userid=BORIS&system=CTB82DEO19&comp=1&appctx=RAPMVCHR_VCHRHDR%5E1003288%7C0%7CC%5EVCHR_KEY%5E1%5E8166%5E0%5E0%7CC%5EVCHR_NO%5E1%5E1623%5E0%5E0%7CC%5EFY_CD%5E1%5E2010%5E0%5E0%7C%5E" } ], "separator": true, "horizontalAlignment": "Right", "spacing": "None" } ], "spacing": "None", "separator": true }, { "type": "Container", "padding": "Small", "spacing": "None", "style": "emphasis", "items": [ { "type": "TextBlock", "text": "Approval entity values:", "wrap": true, "weight": "Bolder" }, { "type": "FactSet", "facts": [ { "title": "Account", "value": "" }, { "title": "User", "value": "BORIS" }, { "title": "Invoice Date", "value": "04/20/2010 " }, { "title": "Invoice Number", "value": "" }, { "title": "Vendor ID", "value": "41 VENDOR" }, { "title": "Approved", "value": "Y" }, { "title": "Vendor Name", "value": "41 Customer" }, { "title": "Voucher Number", "value": "1623" } ] } ], "separator": true }, { "type": "Container", "padding": "Small", "spacing": "None", "separator": true, "items": [ { "type": "TextBlock", "text": "Approval history:", "wrap": true, "weight": "Bolder" }, { "type": "Container", "id": "hist0", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "true", "text": "Apr 16, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "14:20 PM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Started by BORIS", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist1", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "false", "text": "Apr 16, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "14:20 PM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Activity Project Management Approval assigned to Account Approver", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist2", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "true", "text": "Apr 19, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "04:50 AM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Activity Project Management Approval completed by BORIS", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist3", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "false", "text": "Apr 19, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "04:50 AM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Activity Accounting approval assigned to Account Approver", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist4", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "false", "text": "Apr 19, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "05:17 AM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Activity Accounting approval completed by BORIS", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist5", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "true", "text": "Apr 16, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "14:20 PM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Condition Check something = FALSE", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" }, { "type": "Container", "id": "hist6", "style": "default", "padding": "None", "items": [ { "type": "TextBlock", "isVisible": "true", "text": "Apr 19, 2024", "wrap": true, "weight": "Lighter", "spacing": "None", "size": "Medium", "color": "Accent" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "auto", "items": [ { "type": "TextBlock", "text": "05:17 AM", "wrap": true, "weight": "Bolder", "size": "Small" } ], "padding": "None" }, { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Workflow completed", "wrap": true, "size": "Small" } ], "padding": "None" } ], "spacing": "None", "padding": "None" } ], "spacing": "Small", "padding": "None" } ], "spacing": "Small" } ] } ] }, { "type": "ColumnSet", "columns": [ { "type": "Column", "width": 25 }, { "type": "Column", "width": 50, "items": [ { "type": "Container", "id": "showMore", "horizontalAlignment": "Center", "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.ToggleVisibility", "title": "Show more ...", "tooltip": "Click to show the full card", "horizontalAlignment": "Center", "targetElements": [ { "elementId": "showMore", "isVisible": false }, { "elementId": "showLess", "isVisible": true }, { "elementId": "cardContent", "isVisible": true } ] } ], "horizontalAlignment": "Center" } ] }, { "type": "Container", "id": "showLess", "horizontalAlignment": "Center", "isVisible": false, "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.ToggleVisibility", "title": "Show less ...", "tooltip": "Click to minimize the card", "targetElements": [ { "elementId": "showLess", "isVisible": false }, { "elementId": "showMore", "isVisible": true }, { "elementId": "cardContent", "isVisible": false } ] } ], "horizontalAlignment": "Center" } ] } ], "horizontalAlignment": "Center" }, { "type": "Column", "width": 25 } ] } ], "actions": [ { "type": "Action.Execute", "title": "Refresh", "id": "assign", "data": { "action": "assign", "system": "CTB82DEO19", "user": "BORIS", "comp": "1", "card": "a225cbf20ea7413ab9588ee5e232cca3" } } ] } }