web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do you add aatribu...
Power Apps
Answered

How do you add aatributes like color to an message pushed to Teams?

(0) ShareShare
ReportReport
Posted on by 634

I am pushing a message to Teams. I've gotten as far as being able to bold the message but I can't seem to add color. This is how I bolded the text.

 

 

MicrosoftTeams.PostMessageToChannelV3(Group.Selected.id,Channel.Selected.id, {content: "Brand: <b>" & AddBrand_TB.Value & "</b> was added", contentType: "html"})

 

 

If you try and add color there is an issue with the extra set of nested quotes.

 

 

MicrosoftTeams.PostMessageToChannelV3(Group.Selected.id,Channel.Selected.id, {content: "Brand: 
 <span style="color:#e67e22"><b>" & AddBrand_TB.Value & "</b></span> was added", contentType: "html"})

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Future_Vision 

    Try changing your formula to the following:

    MicrosoftTeams.PostMessageToChannelV3(Group.Selected.id,Channel.Selected.id, {content: "Brand: 
     <span style='color:#e67e22'><b>" & AddBrand_TB.Value & "</b></span> was added", contentType: "html"})

     

    I hope this is helpful for you.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Future_Vision To have double quotes as part of u'r string u need double double quotes, For example to display "Text" in a Label, the Text property of the Label would be """Text"""

    So in your case to introduce colour, u'll need,

     

    MicrosoftTeams.PostMessageToChannelV3(Group.Selected.id,Channel.Selected.id, {content: "Brand: 
     <span style=""color:#e67e22""><b>" & AddBrand_TB.Value & "</b></span> was added", contentType: "html"})

     

  • Future_Vision Profile Picture
    634 on at

    @RandyHayes @CNT 

    Sorry for not marking the solution earlier. Both work. Thanks!

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Future_Vision Glad to help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 88

#2
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 45

Last 30 days Overall leaderboard