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 / Formating formule Team...
Power Apps
Answered

Formating formule Teams send message

(0) ShareShare
ReportReport
Posted on by 63

Hello,

I want to send a message in my teams group, for each created NEADS item.

I managed to find IDgroup and IDchannel,

But I have problems with the format of my message.
Someone can help me ? 

MicrosoftTeams.PostMessageToChannelV2("f7c9ddb8-b390-4605-90ec-3da226ee3e74";"19:fb36b2626f1f4868b9922650d38c3823@thread.skype";{ body:{content: "NEW NEADS";contentType:1 } })

 

Categories:
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Glaga ,

    Do you want to format your message that will be sent to Teams?

    Since you use "contentType:1", it means that your message content is html text.

    So the key point is to format your content "NEW NEADS" to the html format you want.

    Could you describe what format that you want?

    Here's a blog about html format in PowerApps for your reference:

    https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/

     

     

    Best regards,

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is my example and works for me:

     

    This works for me:

    MicrosoftTeams.PostMessageToChannelV2(

            MicrosoftTeams.GetTeam("teamId").id;

            cbox_channels.Selected.id;//list of channels, I get the selected

           {

                 body: {};

                 content: txt_BodyMessage.Text;//Normal textbox

                 contentType: 1

           };

          {subject: txt_Subject.Text}//Normal textbox

    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard