microsoft-teamspower-automate

How do I send a message to myself with PowerAutomate?


I am developing a PowerAutomate flow,

I want to use the function "post message in chat or channel", I can send messages to anyone in "one to one" private chats but not on the private chat i have with myself.

Has somebody found a way to message himself via power automate?

I can't create it as a "new chat" in PA because it says users cannot be duplicate.

Then i figured out i had to find the ID of the chat with myself. I tried using the microsoft graph api to retrieve the id from "me/chats" but the chat with myself is not shown. I tried many different filters and expansions with no success.

I also tried analyzing the id itself and discovered that, in the case of "one to one" chats, it's made of {the sender id} and {the receiver id}

I then tried constructing an id that contains 19:{myuserid}_{myuserid}@{domain} but it responds that there is no record.

I tried many combinations, thanks for the help.


Solution

  • Yes, this is definitely possible using Power Automate.

    I opened Teams in the browser and opened the existing chat with myself and grabbed the URL

    https://teams.microsoft.com/_#/conversations/48:notes?ctx=chat

    Other chats were similar, so I copied the 48:notes and used that as the Conversation Id. I also tried it with a different account and the Id was the same.

    You need to use the "Post message in a chat or channel"

    Screenshot of Power Automate flow

    And here is a short demo of it in action:

    GIF of Power Automate flow running and posting message to Teams