Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created July 9, 2020 08:18
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 expiscornovus/6e688546faad8f0d99e425cb9823f343 to your computer and use it in GitHub Desktop.
Save expiscornovus/6e688546faad8f0d99e425cb9823f343 to your computer and use it in GitHub Desktop.
OnBoardingAdaptiveCard.json
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"id": "Title",
"text": "How are you <at>@{outputs('Get_user_-_User_Id')?['body/displayName']}</at>?",
"mentioned": {
"id": "8:orgid:@{triggerOutputs()?['body/id']}",
"name": "@{outputs('Get_user_-_User_Id')?['body/displayName']}"
}
},
{
"type": "TextBlock",
"size": "default",
"weight": "default",
"id": "WelcomeText",
"text": "What's your experience with Microsoft Teams?"
},
{
"type": "Input.ChoiceSet",
"id": "acFollowUp",
"choices": [
{
"title": "I have used it in my past job",
"value": "Experienced"
},
{
"title": "I have seen it a couple of times",
"value": "SomeExperience"
},
{
"title": "Microsoft Teams?",
"value": "NoIdea"
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
],
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>@{outputs('Get_user_-_User_Id')?['body/displayName']}</at>",
"mentioned": {
"id": "8:orgid:@{triggerOutputs()?['body/id']}",
"name": "@{outputs('Get_user_-_User_Id')?['body/displayName']}"
}
}
]
}
}
@tposzytek
Copy link

Brilliant!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment