Created
August 15, 2020 21:12
-
-
Save Imari91/079e7c3fabf884c88aafbd45af889e52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "ColumnSet", | |
"columns": [ | |
{ | |
"type": "Column", | |
"width": "auto", | |
"items": [ | |
{ | |
"type": "Image", | |
"url": "https://static.thenounproject.com/png/540038-200.png", | |
"size": "Small" | |
} | |
] | |
}, | |
{ | |
"type": "Column", | |
"width": "stretch", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"text": "New request: Teams message reported", | |
"color": "Attention", | |
"weight": "Bolder" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "RichTextBlock", | |
"inlines": [ | |
{ | |
"type": "TextRun", | |
"text": "El usuario @{triggerBody()?['entity']?['teamsFlowRunContext']?['from']?['name']} ha reportado el siguiente mensaje en Teams por ser inapropiado. Por favor revise el contenido y tome las medidas necesarias de ser oportuno:" | |
} | |
] | |
}, | |
{ | |
"type": "FactSet", | |
"facts": [ | |
{ | |
"title": "Enviado por:", | |
"value": "@{triggerBody()?['entity']?['teamsFlowRunContext']?['messagePayload']?['from']?['user']?['displayName']}" | |
}, | |
{ | |
"title": "Contenido del mensaje:", | |
"value": "@{triggerBody()?['entity']?['teamsFlowRunContext']?['messagePayload']?['body']?['plainText']}" | |
}, | |
{ | |
"title": "Motivo de la denuncia", | |
"value": "@{triggerBody()?['entity']?['cardOutputs']?['selection']}" | |
}, | |
{ | |
"title": "Comentarios sobre la denuncia", | |
"value": "@{triggerBody()?['entity']?['cardOutputs']?['comments']}" | |
}, | |
{ | |
"title": "Canal/Teams:", | |
"value": "@{triggerBody()?['entity']?['teamsFlowRunContext']?['channelData']?['channel']} / @{triggerBody()?['entity']?['teamsFlowRunContext']?['channelData']?['team']}" | |
} | |
] | |
} | |
], | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
"version": "1.2", | |
"actions": [ | |
{ | |
"type": "Action.OpenUrl", | |
"title": "Ir al mensaje", | |
"style": "positive", | |
"url": "@{triggerBody()?['entity']?['teamsFlowRunContext']?['messagePayload']?['linkToMessage']}" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment