Forum Discussion

francesco1990's avatar
francesco1990
Copper Contributor
Feb 01, 2023

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.

3 Replies

  • Stephen-14853's avatar
    Stephen-14853
    Copper Contributor

    Hi, I'm not sure if this will work for you, but it worked for me. I copied the chat URL, pasted it somewhere, and copied the section of the URL between /chat/ and /conversations

    I used that as the Chat ID like so:

    And it worked. Hopefully this solves everything.

  • ST-Ken's avatar
    ST-Ken
    Iron Contributor

    francesco1990 

     

    I have the same issue.  Please upvote the following ideas:
    https://ideas.powerautomate.com/d365community/idea/e3f94fb3-952f-4099-8877-0e2f96b07af9

    https://ideas.powerautomate.com/d365community/idea/d6451a3e-426d-4d2d-b935-91cd9e87ba8e

     

    Hopefully Microsoft can implement a fix to this this issue that seems to be in high demand.