Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"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