Untitled

 avatar
unknown
json
3 years ago
26 kB
7
Indexable
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "ColumnSet",
            "id": "1ede2aba-61b9-faa0-9895-9ed0c26b2e6f",
            "columns": [
                {
                    "type": "Column",
                    "id": "e5756242-0963-37a2-7cb4-4397886d60bb",
                    "padding": "None",
                    "width": "stretch",
                    "items": [
                        {
                            "type": "TextBlock",
                            "id": "20f3833e-0435-5c87-fad1-b528e0046fb6",
                            "text": "M&A Automation",
                            "wrap": true,
                            "weight": "Bolder"
                        }
                    ],
                    "verticalContentAlignment": "Center"
                },
                {
                    "type": "Column",
                    "id": "74215a26-fa8b-e549-cced-7f99fd34a661",
                    "padding": "None",
                    "width": "auto",
                    "items": [
                        {
                            "type": "Image",
                            "id": "795047e2-e63e-6e14-07ba-5a3e13323dff",
                            "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/ABB_logo.svg/1280px-ABB_logo.svg.png",
                            "size": "Medium",
                            "width": "80px",
                            "height": "32px"
                        }
                    ],
                    "horizontalAlignment": "Right"
                }
            ],
            "padding": {
                "top": "Small",
                "bottom": "Small",
                "left": "Default",
                "right": "Small"
            }
        },
        {
            "type": "Container",
            "id": "260ca8a7-1fca-4418-f3ca-f42bd7a02bed",
            "padding": "None",
            "items": [
                {
                    "type": "TextBlock",
                    "id": "7db02a84-4f19-439f-d96e-7826b0655cf0",
                    "text": "New email received to the shared mailbox. Would you like to continue as opportunity?",
                    "wrap": true
                },
                {
                    "type": "ActionSet",
                    "id": "ab15c9e6-0748-9ef9-a120-d9d01f177839",
                    "actions": [
                        {
                            "type": "Action.ToggleVisibility",
                            "id": "b04e4f4c-072b-7591-8643-c107c803ad58",
                            "title": "Yes",
                            "targetElements": [
                                {
                                    "elementId": "c663517f-3bb5-f928-48a2-9e45a88cd42a",
                                    "isVisible": true
                                }
                            ]
                        },
                        {
                            "type": "Action.Http",
                            "id": "f06e9c88-7f6b-747c-b174-19558d8a7fe2",
                            "title": "No",
                            "method": "POST",
                            "url": "https://prod-136.westeurope.logic.azure.com:443/workflows/094c06925a39475f8feec5adb37da0c0/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IpyVYqzSZM_tIV2_eKv-wZRy-7zndX3PT2e61B5lvyY",
                            "body": "{\"decision\":\"reject\",  \"emailId\":\"{{emailID.value}}\" }",
                            "headers": [
                                {
                                    "name": "Authorization",
                                    "value": ""
                                },
                                {
                                    "name": "Content-type",
                                    "value": "application/json"
                                }
                            ]
                        }
                    ],
                    "horizontalAlignment": "Center"
                },
                {
                    "type": "Container",
                    "id": "c663517f-3bb5-f928-48a2-9e45a88cd42a",
                    "padding": "None",
                    "items": [
                        {
                            "type": "TextBlock",
                            "id": "c36df1cf-8c0c-e750-c935-d05680c3bb33",
                            "text": "Please select the Business",
                            "wrap": true,
                            "horizontalAlignment": "Center"
                        },
                        {
                            "type": "ColumnSet",
                            "id": "0bb6e839-8ec7-7ef9-973c-5e88f568e997",
                            "columns": [
                                {
                                    "type": "Column",
                                    "id": "68ee7a2f-818e-1eac-f78e-84031d31b22f",
                                    "padding": "None",
                                    "width": "auto",
                                    "items": [
                                        {
                                            "type": "ActionSet",
                                            "actions": [
                                                {
                                                    "type": "Action.ToggleVisibility",
                                                    "id": "6ddb7265-3d54-fa1a-21b6-997d5b2225c2",
                                                    "title": "EL",
                                                    "targetElements": [
                                                        {
                                                            "elementId": "EL_Div",
                                                            "isVisible": true
                                                        },
                                                        {
                                                            "elementId": "MO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "PA_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "RO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "cntSubmit",
                                                            "isVisible": true
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Action.ToggleVisibility",
                                                    "id": "19b1c415-7264-b08c-3e3c-ea6c884d0e31",
                                                    "title": "MO",
                                                    "targetElements": [
                                                        {
                                                            "elementId": "MO_Div",
                                                            "isVisible": true
                                                        },
                                                        {
                                                            "elementId": "EL_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "PA_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "RO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "cntSubmit",
                                                            "isVisible": true
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Action.ToggleVisibility",
                                                    "id": "60c61511-4b22-1b68-be67-c3f183d65802",
                                                    "title": "PA",
                                                    "targetElements": [
                                                        {
                                                            "elementId": "PA_Div",
                                                            "isVisible": true
                                                        },
                                                        {
                                                            "elementId": "EL_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "MO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "RO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "cntSubmit",
                                                            "isVisible": true
                                                        }
                                                    ]
                                                },
                                                {
                                                    "type": "Action.ToggleVisibility",
                                                    "id": "bdd4594a-3f69-1daa-d93f-f65dcb1568ed",
                                                    "title": "RO",
                                                    "targetElements": [
                                                        {
                                                            "elementId": "RO_Div",
                                                            "isVisible": true
                                                        },
                                                        {
                                                            "elementId": "EL_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "MO_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "PA_Div",
                                                            "isVisible": false
                                                        },
                                                        {
                                                            "elementId": "cntSubmit",
                                                            "isVisible": true
                                                        }
                                                    ]
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Container",
                                            "id": "EL_Div",
                                            "padding": "None",
                                            "isVisible": false,
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "id": "8434161a-32db-2353-d67c-9d09273ed825",
                                                    "text": "Please select Division",
                                                    "wrap": true
                                                },
                                                {
                                                    "type": "Input.ChoiceSet",
                                                    "id": "csEL_Units",
                                                    "placeholder": "Placeholder text",
                                                    "choices": [
                                                        {
                                                            "title": "ELAA",
                                                            "value": "ELAA"
                                                        },
                                                        {
                                                            "title": "ELBB",
                                                            "value": "ELBB"
                                                        },
                                                        {
                                                            "title": "ELCC",
                                                            "value": "ELCC"
                                                        },
                                                        {
                                                            "title": "ELDD",
                                                            "value": "ELDD"
                                                        }
                                                    ],
                                                    "style": "expanded",
                                                    "isMultiSelect": true
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Container",
                                            "id": "MO_Div",
                                            "padding": "None",
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "id": "3c1bd946-1837-746a-e09f-dd65b90cd71f",
                                                    "text": "Please select Division",
                                                    "wrap": true
                                                },
                                                {
                                                    "type": "Input.ChoiceSet",
                                                    "id": "csMO_Units",
                                                    "placeholder": "Placeholder text",
                                                    "choices": [
                                                        {
                                                            "title": "MOAA",
                                                            "value": "MOAA"
                                                        },
                                                        {
                                                            "title": "MOBB",
                                                            "value": "MOBB"
                                                        },
                                                        {
                                                            "title": "MOCC",
                                                            "value": "MOCC"
                                                        },
                                                        {
                                                            "title": "MODD",
                                                            "value": "MODD"
                                                        }
                                                    ],
                                                    "style": "expanded",
                                                    "isMultiSelect": true
                                                }
                                            ],
                                            "isVisible": false
                                        },
                                        {
                                            "type": "Container",
                                            "id": "PA_Div",
                                            "padding": "None",
                                            "isVisible": false,
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "id": "6223b368-99eb-9a37-31cc-87b752c48a31",
                                                    "text": "Please select Division",
                                                    "wrap": true
                                                },
                                                {
                                                    "type": "Input.ChoiceSet",
                                                    "id": "csPA_Units",
                                                    "placeholder": "Placeholder text",
                                                    "value": "X",
                                                    "choices": [
                                                        {
                                                            "title": "PAAA",
                                                            "value": "PAAA"
                                                        },
                                                        {
                                                            "title": "PABB",
                                                            "value": "PABB"
                                                        },
                                                        {
                                                            "title": "PACC",
                                                            "value": "PACC"
                                                        },
                                                        {
                                                            "title": "PADD",
                                                            "value": "PADD"
                                                        }
                                                    ],
                                                    "style": "expanded",
                                                    "isMultiSelect": true
                                                }
                                            ]
                                        },
                                        {
                                            "type": "Container",
                                            "id": "RO_Div",
                                            "padding": "None",
                                            "isVisible": false,
                                            "items": [
                                                {
                                                    "type": "TextBlock",
                                                    "id": "59658c67-2485-032d-9272-22d083373a6a",
                                                    "text": "Please select Division",
                                                    "wrap": true
                                                },
                                                {
                                                    "type": "Input.ChoiceSet",
                                                    "id": "csRO_Units",
                                                    "placeholder": "Placeholder text",
                                                    "choices": [
                                                        {
                                                            "title": "ROAA",
                                                            "value": "ROAA"
                                                        },
                                                        {
                                                            "title": "ROBB",
                                                            "value": "ROBB"
                                                        },
                                                        {
                                                            "title": "ROCC",
                                                            "value": "ROCC"
                                                        },
                                                        {
                                                            "title": "RODD",
                                                            "value": "RODD"
                                                        }
                                                    ],
                                                    "style": "expanded",
                                                    "isMultiSelect": true
                                                }
                                            ]
                                        }
                                    ]
                                }
                            ],
                            "padding": "None",
                            "horizontalAlignment": "Center"
                        }
                    ],
                    "isVisible": false
                }
            ]
        },
        {
            "type": "Container",
            "items": [
                {
                    "type": "Input.Text",
                    "id": "itProjectName",
                    "placeholder": "Project Name",
                    "isMultiline": false
                },
                {
                    "type": "Input.Text",
                    "id": "itComments",
                    "placeholder": "Additional comments",
                    "isMultiline": true
                },
                {
                    "type": "Input.Text",
                    "value": "@{triggerOutputs()?['body/id']}",
                    "id": "emailID",
                    "isVisible": true
                },
                {
                    "type": "ActionSet",
                    "actions": [
                        {
                            "type": "Action.Http",
                            "title": "Submit",
                            "method": "POST",
                            "url": "https://prod-136.westeurope.logic.azure.com:443/workflows/094c06925a39475f8feec5adb37da0c0/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=IpyVYqzSZM_tIV2_eKv-wZRy-7zndX3PT2e61B5lvyY",
                            "id": "actSubmit",
                            "headers": [
                                {
                                    "name": "Authorization",
                                    "value": ""
                                },
                                {
                                    "name": "Content-type",
                                    "value": "application/json"
                                }
                            ],
                            "body": "{\"decision\":\"approved\", \"EL_Units\":\"{{csEL_Units.value}}\" , \"MO_Units\":\"{{csMO_Units.value}}\" , \"PA_Units\":\"{{csPA_Units.value}}\" , \"RO_Units\":\"{{csRO_Units.value}}\",  \"comments\":\"{{itComments.value}}\",  \"projectName\":\"{{itProjectName.value}}\" ,\"emailId\":\"{{emailID.value}}\" }"
                        }
                    ],
                    "horizontalAlignment": "Center"
                }
            ],
            "isVisible": false,
            "id": "cntSubmit",
            "padding": "None"
        }
    ],
    "padding": "None",
    "@type": "AdaptiveCard",
    "@context": "http://schema.org/extensions"
}
Editor is loading...