cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
francorg
Advocate I
Advocate I

Send a slack direct message

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

1 ACCEPTED SOLUTION

Accepted Solutions
francorg
Advocate I
Advocate I

sorry... it works!

just use @username

I was using the wrong username... ooooops.

 

Thank you,

Roberto

View solution in original post

5 REPLIES 5
francorg
Advocate I
Advocate I

sorry... it works!

just use @username

I was using the wrong username... ooooops.

 

Thank you,

Roberto

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).

Anonymous
Not applicable

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.

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

 

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

 


 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,489)