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 Automate / Can it possible to sen...
Power Automate
Answered

Can it possible to sent messages from power app to teams app

(1) ShareShare
ReportReport
Posted on by 14
 
We wanted to create a power app workflow, which triggered when new message come and that mail content need to sent to ms teams app. 

I can see there are few power app template "Forward emails to a channel" which has similar flow but they are able to sent mail content only on ms teams channel and group. Not on custom app. 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    Yes you can certainly pass something to Teams from a Canvas App. However you will not have the trigger ability as that cannot be used inside a Power App.
     
    Here are some good examples
     
     
    If this answers you, Please mark the answer as such, I would appreciate it.
     
    Cheers!
     
  • Vaibhav Mankar Profile Picture
    14 on at
     
    we are able to sent message to specific channel or group. Our objective to sent message to teams app. 
     
  • MarkRahn Profile Picture
    1,231 Super User 2025 Season 2 on at
     
    Do you control the code for "dbNotifierBETA"? If so, what is it built on? What Framework?
     
    From looking for different examples, it seems like you should be able to expose an HTTP Endpoint that a Power Automate flow could POST to with messages suing the messaging extension.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    Yeah that's a super important point that its literally an app.
     
    We have a couple of options
     
    1) You have a way to expose some endpoint that is HTTP(s) based
    2) You have some type of end point, that you can create a custom connector that you can use in the Flow
    3) Your app responds to triggers... as in, you create a row in a DB and it see's it and does something
    4) Your app is Pole an HTTP(s) end point and you expose that in Flow
     
    Its not so much that you are limited, its that you are limited based on what your App can do, or have done to it.
     
    Understanding that App directly is the important piece. Creating a Flow to pass it data, or to trigger it is easy once we understand the options.
     
    Cheers
  • Vaibhav Mankar Profile Picture
    14 on at
     
    As per my understanding to post message on HTTP it need premium license of Power App. Is there not way we can post message to that teams app similar we can able to post to channel or group.
  • MarkRahn Profile Picture
    1,231 Super User 2025 Season 2 on at
     
    Can you provide more specifics on what you have control over? Are you a full stack developer who is writing the code for "dbNotifierBETA"? Or are you just someone who is trying to integrate with it?
     
    If the Teams App  "dbNotifierBETA" is a bot, then the developer (you?) should be able to implement something like what is discussed here:
    "Channel and group chat conversations with a bot"
     
    Andrew Connell is a great resource for all things MS Teams app/bot. He is the person shown in the video on the above page.
     
    Based on what I saw here: https://github.com/microsoft/botframework-sdk/issues/5387 You would need to @mention the bot to get the message to them.
     
    Then your Power App should be able to use the Teams action to send a message to a channel that the bot could pick up.
     
    If you were to go the route of creating an HTTP endpoint in your bot to send messages to, then you have other means of completing your goal besides Power Automate. You could use a Logic App which runs on a Consumption Plan instead of a Power Automate flow. An HTTP Action in a Logic App works differently that Power Automate in how MS charges you for the feature. On a Consumption Plan, you are charged (I am simplifying here) by the number of times your flow runs.
     
    Any specifics you can provide would help.
    1) Do you have the ability to make changes to the "dbNotifierBETA" app? If not, can the developer provide you with any information such as does this bot listen to a channel for @mentions?
    2) Where are the messages coming from that you want to relay to the bot? An inbox? A Table in SQL? A SharePoint List? Can the bot/app be created to check that location directly instead of the need for a Power Automate flow to do that task?
    3) Currently what are you able to do with this bot? Are you able to converse with the bot as a user? Are you able to say for example "@dbNotifierBETA here is the body of an email I received....."?
     
    You mentioned the concern for using a Premium Connector but depending on how you accomplish what you are trying to do, you may only need a license for a Service Account that the flow runs under.
     
    Any additional information you can provide would help.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
     
     
  • Vaibhav Mankar Profile Picture
    14 on at
    Thanks @ for complete detail.
     
    I am the owner of dbNotifierBETA App. whenever user type @dbNotifierBETA <<text>>, i can get all details.  we are using microsoft SDK to get detail.
     
    As you suggested I had create adaptive card with @dbNotidierBETA mention and after that some text, but our listener is not get called. 
     
  • MarkRahn Profile Picture
    1,231 Super User 2025 Season 2 on at
    What is the name of the Power Automate Action you are using? "Post card in a chat or channel" Action?
     
    I found this video on YouTube:
    Mention a bot from a Power Automate flow
     
    I think it will be useful to what you are trying to do.
    There is also a blog post to go with the video: https://www.expiscornovus.com/2022/06/10/mention-a-bot-with-a-flow/
     
    The video and blog are by Dennis Goedegebuure | @expiscornovus 
     
    He use to be on the forums. I am not sure if he still is.
     
    While the video and the blog post are from 2023 and it uses the Graph API, I think you can use this Action "Send a Microsoft Graph HTTP request" from the Teams to send an HTTP request that is still within the standard license.
     
    It looks like some pretty cool stuff! Hopefully this gets you going in the right direction.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
  • Vaibhav Mankar Profile Picture
    14 on at
     
    body as : 
    {
      "body": {
            "type": "TextBlock",
            "text": "<at id=\"0\">dbDialog</at> config"
          },
           "mentions" :[ {
            "id" : "0",
            "mentionText": "dbDialog",
            "mentioned": {
                "application":{
                    "id": "app id",
                    "displayName": "dbDialog",
                    "applicationIdentityType":"bot"
                }
                
              }
        }]
    }
     
  • Verified answer
    MarkRahn Profile Picture
    1,231 Super User 2025 Season 2 on at
     
    I got this to work. Let me go over the steps I used:
     
    1) Install a bot I can test with.
        I have a DEV Tenant I used. I installed "Billy - The Birthday Bot" and added him to the "Sales and Marketing" Team and the "General" channel. This bot has two commands I can send it - "help" and "upcoming". The commands for your bot will be different.
     
    2) Test with MS Graph.
    a) I went to https://developer.microsoft.com/en-us/graph/graph-explorer and connected with my user id to the ms graph explorer. Make sure you can connect and read your profile. You may need to "Modify Permissions" to make sure your account has consented to the permissions needed to make the call.
     
    b) Find the Microsoft Teams graph api calls that you can make in the API Explorer.
     
    c) Call "my joined teams" which looks like this "https://graph.microsoft.com/v1.0/me/joinedTeams" You will have to "Modify Permissions" and Consent to be able to make the call. If the call returns "200", then look at the Response and find the id for the Team you are looking for. I used CTRL-F to search for "Sales and Marketing" and get the id.
     
    d) Call "channels of a team which I am a member of" https://graph.microsoft.com/v1.0/teams/{team-id}/channels I filled in the "team-id". Consent to the required Permissions so this call will work. I found the "General" channel and got it's id.
     
    e) Call "apps in a team" https://graph.microsoft.com/v1.0/teams/{team-id}/installedApps?$expand=teamsAppDefinition using the team id. I used CTRL-F to search for the bot by it's name. This is what was returned for the bot I was testing with:
    {
                "id": "NOT THIS VALUE",
                "consentedPermissionSet": null,
                "teamsAppDefinition": {
                    "id": "NOT THIS VALUE",
                    "teamsAppId": "NOT THIS VALUE",
                    "displayName": "Billy - The Birthday Bot",
                    "version": "1.1.1",
                    "publishingState": "published",
                    "shortDescription": "Automate birthdays and work anniversaries celebrations 🎉",
                    "description": "**How it works?**\",
                    "lastModifiedDateTime": null,
                    "createdBy": null,
                    "authorization": {
                        "clientAppId": "<<<<----- THIS ONE IS THE ID TO USE",
                        "requiredPermissionSet": {
                            "resourceSpecificPermissions": []
                        }
                    }
                }
    Get the clientAppId. That is the value you want under "authorization".
     
    f) Call "send channel message" using a POST from the MS Graph Explorer. https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages Make sure you consent using "Manage Permission" Put in the team-id and channel-id. Send it the basic "Hello World" message.
     
    g) If the test message worked, then send a message to the bot in that Team Channel. I sent the following to Billy using the Client App ID from above:
    {
        "body": {
            "contentType": "html",
            "content": "<div><div><at id=\"0\">Billy - The Birthday Bot</at> help</div></div>"
        },
        "mentions": [
            {
                "id": 0,
                "mentionText": "Billy - The Birthday Bot",
                "mentioned": {
                    "device": null,
                    "user": null,
                    "conversation": null,
                    "tag": null,
                    "application": {
                        "id": "INSERT THE clientAppId HERE",
                        "displayName": "Billy - The Birthday Bot",
                        "applicationIdentityType": "bot"
                    }
                }
            }
        ]
    }
     
    In the Teams Channel, I saw my Post and the reply from Billy
     
    3) Create a Flow to make the MS Graph call to teams.
    a) I created the following flow:
    b) I used the URI exactly as I used in MS Graph Explorer. I set the method to POST. The Body was the same as above with the @mention.
     
    This worked for me and Billy replied to the post from the Power Automate Flow.
     
    Please try these steps with your "dbNotifier" bot.
     
    Hopefully this gets you to where you want to be. Maybe the Permissions are causing an issue. Testing with the MS Graph Explorer should help you identify any Permission problems.
     
    This community is supported by individuals freely devoting their time to answer questions and provide support. They do it to let you know you are not alone. This is a community.

    If someone has been able to answer your questions or solve your problem, please click Does this answer your question. This will help others who have the same question find a solution quickly via the forum search.

    If someone was able to provide you with more information that moved you closer to a solution, throw them a Like. It might make their day. 😊

    Thanks
    -Mark
     
     
     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard