SOLVED

Emojis in adaptive cards

%3CLINGO-SUB%20id%3D%22lingo-sub-3055475%22%20slang%3D%22en-US%22%3EEmojis%20in%20adaptive%20cards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3055475%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20send%20emojis%20as%20part%20of%20a%20TextBlock%2C%20or%20other%20type%20of%20element%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3055475%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hi,

 

Is there a way to send emojis as part of a TextBlock, or other type of element ?

 

Thanks

2 Replies
best response confirmed by ChetanSharma-msft (Microsoft)
Solution

‌‌@__arik__ -The correct way to use emojis is to directly add it with Text like this "🥰 "
Code snippet:

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "ColumnSet",
            "horizontalAlignment": "Center",
            "columns": [
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "ColumnSet",
                            "horizontalAlignment": "Center",
                            "columns": [
                                {
                                    "type": "Column",
                                    "items": [
                                        {
                                            "type": "TextBlock",
                                            "text": "**AwareGO Training Bot**",
                                            "wrap": true
                                        },
                                        {
                                            "type": "TextBlock",
                                            "spacing": "None",
                                            "text": "Hi ABC:🥰",
                                            "height": "stretch",
                                            "wrap": true
                                        },
                                        {
                                            "type": "TextBlock",
                                            "text": "Well, here you’ll receive the original, bite-sized video lessons that make learning about cybersecurity surprisingly fun :popcorn:.",
                                            "wrap": true,
                                            "isSubtle": true
                                        }
                                    ],
                                    "width": 250
                                }
                            ]
                        }
                    ],
                    "width": 100
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2"
}

Card UI:

 

AC1.png

Thanks, 

Sayali

--------------------------------------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

 

@__arik__ -Could you please confirm if your issue has resolved with above suggestion or still looking for any help?