Skip to content

Instantly share code, notes, and snippets.

@Imari91
Created August 15, 2020 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Imari91/079e7c3fabf884c88aafbd45af889e52 to your computer and use it in GitHub Desktop.
Save Imari91/079e7c3fabf884c88aafbd45af889e52 to your computer and use it in GitHub Desktop.
{
"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