{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "fallbackText": "Adaptive card version not supported",
    "hideOriginalBody": true,
    "version": "1.6",
    "body": [
        {
            "type": "Container",
            "padding": "None",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "padding": "Small",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "Image",
                                    "url": "https://ac-cp.deltek.com/CPWeb/images/CP_Notification.png",
                                    "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": "APMVCHR Simple",
                                    "wrap": true,
                                    "size": "Medium",
                                    "weight": "Bolder"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "Case # 325",
                                    "wrap": true,
                                    "spacing": "None",
                                    "weight": "Bolder"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "Manage Accounts Payable Vouchers",
                                    "spacing": "Small",
                                    "weight": "Bolder",
                                    "wrap": true
                                }
                            ]
                        }
                    ],
                    "padding": "None"
                }
            ]
        },
        {
            "type": "Container",
            "padding": "Small",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "wrap": true,
                                    "text": "Started:",
                                    "weight": "Lighter",
                                    "spacing": "None"
                                },
                                {
                                    "type": "TextBlock",
                                    "wrap": true,
                                    "text": "Expire:",
                                    "weight": "Lighter",
                                    "spacing": "None"
                                }
                            ],
                            "padding": "None"
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "04/07/2024 04:41",
                                    "wrap": true,
                                    "spacing": "Small"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "never",
                                    "wrap": true,
                                    "spacing": "None"
                                }
                            ],
                            "verticalContentAlignment": "Center",
                            "padding": "None"
                        }
                    ],
                    "spacing": "None",
                    "padding": "None"
                }
            ],
            "spacing": "Small",
            "style": "emphasis",
            "verticalContentAlignment": "Center",
            "bleed": true
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Workflow activity Project Management Approval is assigned to your role Account Approver for approval.",
                    "wrap": true,
                    "weight": "Bolder"
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "wrap": true,
                                    "text": "Instructions:",
                                    "weight": "Bolder",
                                    "spacing": "None"
                                }
                            ],
                            "padding": "None"
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "Please approve",
                                    "wrap": true,
                                    "spacing": "None"
                                }
                            ],
                            "verticalContentAlignment": "Bottom",
                            "padding": "None"
                        }
                    ],
                    "padding": "None",
                    "bleed": true,
                    "spacing": "Small"
                }
            ],
            "spacing": "Small",
            "padding": "Small"
        },
        {
            "type": "Container",
            "id": "a6a6f0df-a68b-1387-96ce-21bf8912cc93",
            "padding": "None",
            "items": [
                {
                    "type": "ColumnSet",
                    "id": "3a2fe3dc-2056-ed41-57d9-3ba27185c990",
                    "columns": [
                        {
                            "type": "Column",
                            "id": "e6a6a18f-3ae3-2134-52d8-6f2bc907e30c",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "05a5e182-8cb5-3f94-52e2-2c4bedcb93dd",
                                    "horizontalAlignment": "Center",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "d086a1b7-40f6-52ec-04fc-6bae98ae79a6",
                                            "title": "Approve",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/accept-icon.png",
                                            "targetElements": [
                                                {
                                                    "elementId": "b8e18c3b-539f-56ea-53ec-c334fd064705",
                                                    "isVisible": true
                                                },
                                                {
                                                    "elementId": "7be1e9fa-1d02-2e4f-70b6-3836d02d50d6",
                                                    "isVisible": false
                                                },
                                                {
                                                    "elementId": "a6a6f0df-a68b-1387-96ce-21bf8912cc93",
                                                    "isVisible": false
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "id": "002c3568-2aa4-7e01-f72f-b47a8c90a2c5",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "6f985afc-018a-0c81-62f9-ce3b4503bd32",
                                    "horizontalAlignment": "Center",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "06e9f97f-141b-6385-0972-134f3b137dbf",
                                            "title": "Reject",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/cancel-icon.png",
                                            "targetElements": [
                                                {
                                                    "elementId": "b8e18c3b-539f-56ea-53ec-c334fd064705",
                                                    "isVisible": false
                                                },
                                                {
                                                    "elementId": "7be1e9fa-1d02-2e4f-70b6-3836d02d50d6",
                                                    "isVisible": true
                                                },
                                                {
                                                    "elementId": "a6a6f0df-a68b-1387-96ce-21bf8912cc93",
                                                    "isVisible": false
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    "padding": "Small",
                    "horizontalAlignment": "Center",
                    "style": "emphasis",
                    "bleed": true
                }
            ],
            "spacing": "None",
            "bleed": true
        },
        {
            "type": "Container",
            "id": "b8e18c3b-539f-56ea-53ec-c334fd064705",
            "bleed": true,
            "padding": "None",
            "items": [
                {
                    "type": "ColumnSet",
                    "id": "e36cb257-b0f5-981c-a7d7-db7cabd6272f",
                    "columns": [
                        {
                            "type": "Column",
                            "id": "69bed34d-8c25-ad6a-f16a-12d98bb62b97",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "50154080-8f1c-575e-ee01-4a9009672675",
                                    "horizontalAlignment": "Center",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "10601b4d-d406-a77c-8a6b-d839485f7bb2",
                                            "title": "Approve",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/accept-icon.png",
                                            "style": "positive",
                                            "isPrimary": true,
                                            "targetElements": [
                                                {
                                                    "elementId": "10601b4d-d406-a77c-8a6b-d839485f7bb2",
                                                    "isVisible": true
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "id": "58236eaa-3784-08c7-f80c-6fab301876cd",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "8f559b01-27d4-40a9-675c-ff0e557ab9e3",
                                    "horizontalAlignment": "Center",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "52976d4c-582b-aafe-6fe0-18f54b0e412f",
                                            "title": "Reject",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/cancel-icon.png",
                                            "targetElements": [
                                                {
                                                    "elementId": "b8e18c3b-539f-56ea-53ec-c334fd064705",
                                                    "isVisible": false
                                                },
                                                {
                                                    "elementId": "7be1e9fa-1d02-2e4f-70b6-3836d02d50d6",
                                                    "isVisible": true
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    "padding": "Small",
                    "horizontalAlignment": "Center",
                    "style": "emphasis",
                    "bleed": true
                },
                {
                    "type": "TextBlock",
                    "id": "c2abc361-a2fe-d831-cb89-a2d36450eaff",
                    "text": "Comments:",
                    "wrap": true,
                    "spacing": "Medium"
                },
                {
                    "type": "Input.Text",
                    "id": "approveNotes",
                    "placeholder": "Enter text here",
                    "isMultiline": true,
                    "spacing": "Small"
                },
                {
                    "type": "ActionSet",
                    "id": "6cb8f55d-7b7a-0213-b607-f6834ac11d34",
                    "actions": [
                        {
                            "title": "Submit Approval",
                            "isPrimary": true,
                            "isEnabled": true,
                            "type": "Action.Execute",
                            "style": "positive",
                            "id": "approve",
                            "data": {
                                "action": "approve",
                                "system": "CTB82DEO19",
                                "user": "BORIS",
                                "comp": "1",
                                "card": "26057e89b45d4847a1bcf9bfbff862b1"
                            }
                        }
                    ]
                }
            ],
            "spacing": "None",
            "isVisible": false
        },
        {
            "type": "Container",
            "id": "7be1e9fa-1d02-2e4f-70b6-3836d02d50d6",
            "bleed": true,
            "padding": "None",
            "items": [
                {
                    "type": "ColumnSet",
                    "id": "fcc3240a-d1a2-f01c-16b7-65e69d2ec163",
                    "columns": [
                        {
                            "type": "Column",
                            "id": "003837ce-9a8a-984c-186f-1db028bee0f5",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "e0dfeba4-c02d-c444-1989-ab26cf80e2f4",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "a7eea7ce-5834-2bb8-7a97-dca45159646e",
                                            "title": "Approve",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/accept-icon.png",
                                            "targetElements": [
                                                {
                                                    "elementId": "b8e18c3b-539f-56ea-53ec-c334fd064705",
                                                    "isVisible": true
                                                },
                                                {
                                                    "elementId": "7be1e9fa-1d02-2e4f-70b6-3836d02d50d6",
                                                    "isVisible": false
                                                }
                                            ]
                                        }
                                    ],
                                    "spacing": "None",
                                    "horizontalAlignment": "Center"
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "id": "0936513c-0a55-ee5c-c3af-e27e8013abae",
                            "padding": "None",
                            "width": 50,
                            "items": [
                                {
                                    "type": "ActionSet",
                                    "id": "135112df-6b7d-3962-d888-7a3208ad0b27",
                                    "actions": [
                                        {
                                            "type": "Action.ToggleVisibility",
                                            "id": "7a04f7f6-c578-59ab-25a5-3cf4d9238d16",
                                            "title": "Reject",
                                            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/cancel-icon.png",
                                            "style": "positive",
                                            "isPrimary": true,
                                            "targetElements": [
                                                {
                                                    "elementId": "7a04f7f6-c578-59ab-25a5-3cf4d9238d16",
                                                    "isVisible": true
                                                }
                                            ]
                                        }
                                    ],
                                    "horizontalAlignment": "Center"
                                }
                            ]
                        }
                    ],
                    "padding": "Small",
                    "horizontalAlignment": "Center",
                    "style": "emphasis",
                    "bleed": true
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "id": "a6483594-eb8d-4f0d-28d3-458a234f3744",
                            "padding": "None",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "id": "lblRejectReason",
                                    "text": "Reject reason:",
                                    "wrap": true
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        },
                        {
                            "type": "Column",
                            "id": "5ef07a5f-fd6e-2843-9483-547eba8ed464",
                            "padding": "None",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "Input.ChoiceSet",
                                    "id": "rejectCd",
                                    "wrap": true,
                                    "isVisible": true,
                                    "choices": [
                                        {
                                            "title": "Incorrect Amount",
                                            "value": "*Incorrect Amount"
                                        },
                                        {
                                            "title": "Incorrect Project Setup",
                                            "value": "Incorrect Project Setup"
                                        },
                                        {
                                            "title": "Incorrect Project Type",
                                            "value": "Incorrect Project Type"
                                        }
                                    ],
                                    "value": "*Incorrect Amount"
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        }
                    ],
                    "padding": "None",
                    "spacing": "Medium"
                },
                {
                    "type": "TextBlock",
                    "id": "d3fdd194-8a9f-b834-9623-9f48f73f1257",
                    "text": "Comments:",
                    "wrap": true,
                    "spacing": "Small"
                },
                {
                    "type": "Input.Text",
                    "id": "rejectNotes",
                    "placeholder": "Enter text here",
                    "isMultiline": true,
                    "spacing": "Small"
                },
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "id": "6a58a646-c46e-78ec-9fd3-8a6bddc95e1d",
                            "padding": "None",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "id": "3287a464-a638-5054-fe73-1f43e80fa1cf",
                                    "text": "Back to activity:",
                                    "wrap": true
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        },
                        {
                            "type": "Column",
                            "id": "lblRejectTo",
                            "padding": "None",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "Input.ChoiceSet",
                                    "id": "rejectTo",
                                    "wrap": true,
                                    "isVisible": true,
                                    "choices": [
                                        {
                                            "title": "Reject All",
                                            "value": "*0"
                                        }
                                    ],
                                    "value": "*0"
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        }
                    ],
                    "padding": "None",
                    "spacing": "Medium"
                },
                {
                    "type": "ActionSet",
                    "id": "00cfb8a1-b6b2-21a8-8942-01bdd0cba703",
                    "actions": [
                        {
                            "title": "Submit Rejection",
                            "isPrimary": true,
                            "type": "Action.Execute",
                            "isEnabled": true,
                            "id": "reject",
                            "style": "positive",
                            "data": {
                                "action": "reject",
                                "system": "CTB82DEO19",
                                "user": "BORIS",
                                "comp": "1",
                                "card": "26057e89b45d4847a1bcf9bfbff862b1"
                            }
                        }
                    ]
                }
            ],
            "spacing": "None",
            "isVisible": false
        },
        {
            "type": "Container",
            "id": "cardContent",
            "isVisible": false,
            "horizontalAlignment": "Center",
            "items": [
                {
                    "type": "Container",
                    "padding": "None",
                    "items": [
                        {
                            "type": "ActionSet",
                            "actions": [
                                {
                                    "title": "Escalate",
                                    "isPrimary": false,
                                    "type": "Action.Execute",
                                    "isEnabled": true,
                                    "id": "escalate",
                                    "data": {
                                        "action": "escalate",
                                        "system": "CTB82DEO19",
                                        "user": "BORIS",
                                        "comp": "1",
                                        "card": "26057e89b45d4847a1bcf9bfbff862b1"
                                    }
                                },
                                {
                                    "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%5E1441%5E0%5E0%7CC%5EVCHR_NO%5E1%5E1021%5E0%5E0%7CC%5EFY_CD%5E1%5E1994%5E0%5E0%7C%5E"
                                }
                            ],
                            "horizontalAlignment": "Right",
                            "spacing": "None"
                        }
                    ],
                    "spacing": "Medium"
                },
                {
                    "type": "Container",
                    "padding": "Small",
                    "bleed": true,
                    "style": "emphasis",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "Approval entity values:",
                            "wrap": true,
                            "weight": "Bolder"
                        },
                        {
                            "type": "FactSet",
                            "facts": [
                                {
                                    "title": "Account",
                                    "value": "<empty>"
                                },
                                {
                                    "title": "User",
                                    "value": "BORIS"
                                },
                                {
                                    "title": "Invoice Date",
                                    "value": "10/21/2007 "
                                },
                                {
                                    "title": "Invoice Number",
                                    "value": "1021"
                                },
                                {
                                    "title": "Vendor ID",
                                    "value": "JTVEND1"
                                },
                                {
                                    "title": "Approved",
                                    "value": "Y"
                                },
                                {
                                    "title": "Vendor Name",
                                    "value": "JT VENDOR"
                                },
                                {
                                    "title": "Voucher Number",
                                    "value": "1021"
                                }
                            ]
                        }
                    ]
                },
                {
                    "type": "Container",
                    "padding": "Small",
                    "spacing": "Small",
                    "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 07, 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:41 AM",
                                                            "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 07, 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:41 AM",
                                                            "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"
                        }
                    ],
                    "bleed": true
                }
            ],
            "bleed": true
        },
        {
            "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",
            "isEnabled": true,
            "title": "Refresh",
            "id": "assign",
            "iconUrl": "https://ac-cp.deltek.com/CPWeb/images/refresh-icon.png",
            "data": {
                "action": "assign",
                "system": "CTB82DEO19",
                "user": "BORIS",
                "comp": "1",
                "card": "26057e89b45d4847a1bcf9bfbff862b1"
            }
        }
    ],
    "padding": "Small"
}