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

Notifications

Announcements

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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard