Skip to main content

Notifications

Community site session details

Community site session details

Session Id : uLGia/Nji6NG6QMASoEC6v
Power Automate - General Discussion
Answered

Send a slack direct message

Like (1) ShareShare
ReportReport
Posted on 2 May 2016 12:56:15 by 15

Hi,

 is it possible to have Flow send a direct message on slack?

I tried setting @username in the Slack action channel field but it doesn't work.

 

Thank you,

Roberto

  • jcarbest Profile Picture
    2 on 23 May 2022 at 20:10:56
    Re: Send a slack direct message

    There is a way you can send a direct message to someone's Slackbot using Power Automate. Not sure if that would work for you.

  • Ari1 Profile Picture
    2 on 08 Mar 2019 at 21:15:18
    Re: Send a slack direct message

    Hi @brentlightsey ,

     

    These solutions are more like workarounds. It may work for some but as for me, I'm stuck. The purpose of mentioning someone in a channel is because we have a bot that listens for messages mentioning him in this particular channel only. Therefore I need a way to post from a Flow into this channel and using @slackbot or we need to make changes to this bot.

     


    @brentlightsey wrote:

    Hey, @Anonymous. Two options to make this work (I think 2nd is better).

    Option 1: Put "@" + username in the channel name field

    1. However, this is not the display name and
    2. This is not the email address the user uses to log in
    3. The best way I found to locate this value is to go to [yourworkspacename].slack.com/account/settings#username then expand out this area to show username

    Image: Find Slack Username

     

    Option 2 (Better): Use Member ID

    Part 1- Find Member ID

    1. In your Slack Workspace Directory, find the person to whom you want to post the direct message.
    2. Then click the "..."
    3. Then click to copy their Member ID
      Image: Find Member ID

    Part 2 - Use Member ID

    1. In your Flow, just put the Member ID as the channel name (no need for an "@" symbol here)
      Image: Use Member ID In Flow

     


     

  • brentlightsey Profile Picture
    20 on 11 Oct 2018 at 12:52:57
    Re: Send a slack direct message

    Hey, @Anonymous. Two options to make this work (I think 2nd is better).

    Option 1: Put "@" + username in the channel name field

    1. However, this is not the display name and
    2. This is not the email address the user uses to log in
    3. The best way I found to locate this value is to go to [yourworkspacename].slack.com/account/settings#username then expand out this area to show username

    Image: Find Slack Username

     

    Option 2 (Better): Use Member ID

    Part 1- Find Member ID

    1. In your Slack Workspace Directory, find the person to whom you want to post the direct message.
    2. Then click the "..."
    3. Then click to copy their Member ID
      Image: Find Member ID

    Part 2 - Use Member ID

    1. In your Flow, just put the Member ID as the channel name (no need for an "@" symbol here)
      Image: Use Member ID In Flow

     

  • Community Power Platform Member Profile Picture
    on 10 Aug 2018 at 16:16:36
    Re: Send a slack direct message

    I'm having the same thing. I cannot send a message to a specific person and there are no posts explaining how people have accomplished it.

  • CorkyStClair Profile Picture
    on 02 Aug 2018 at 21:16:54
    Re: Send a slack direct message

    Interesting you were able to get this to work...no matter what I try...I can't get Flow to send a direct message (only to channels).

  • Verified answer
    francorg Profile Picture
    15 on 02 May 2016 at 13:05:12
    Re: Send a slack direct message

    sorry... it works!

    just use @username

    I was using the wrong username... ooooops.

     

    Thank you,

    Roberto

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard