cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jhalbert
New Member

Email to Slack Personal IM

Using the office 365 mail notification flow on Slack, how can I have the alert that's generated appear in my personal IM?  I don't want to have it sent to any existing channels and I don't want to create a channel just to get email notifciations.  The setup says that I should be able to put in IM channel, which is what personal one should be...

 

I've tried:

 

my display name

my account name

the chat id (right click & copy link on my channel)

 

Do these need a hash prepended (e.g. #myusername)?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Email to Slack Personal IM

Hi @jhalbert,

 

Do you want to post your Outlook email notification to your personal IM channel of Slack?

 

If you want to post your Outlook email notificaiton to your personal IM channel of Slack, you should firstly obtain the channel id of the IM channel. Please consider take a try to obtain the channel id with the following steps:

  • Generate your legacy token within the following link:

         https://api.slack.com/custom-integrations/legacy-tokens

 

Select your workspace of your Slack and then click the "Create token" button:16.JPG

  •  Open the following link and select the "Tester" tab

          https://api.slack.com/methods/im.list

          Within the "Tester" tab, click "Test Method" button:17.JPG

 

 

Within the response box, copy the id of one IM channel of IM channel arrays:18.JPG

  •  Create a flow within Microsoft Flow, my flow's configuration as below:19.JPG

    Within Channel Name field of "Post message" action, paste the IM channel id that copied above.

 

I have made a test on my side and the flow works successfully as below:20.JPG

 

 

Best regards,

Kris

 

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Re: Email to Slack Personal IM

Hi @jhalbert,

 

Do you want to post your Outlook email notification to your personal IM channel of Slack?

 

If you want to post your Outlook email notificaiton to your personal IM channel of Slack, you should firstly obtain the channel id of the IM channel. Please consider take a try to obtain the channel id with the following steps:

  • Generate your legacy token within the following link:

         https://api.slack.com/custom-integrations/legacy-tokens

 

Select your workspace of your Slack and then click the "Create token" button:16.JPG

  •  Open the following link and select the "Tester" tab

          https://api.slack.com/methods/im.list

          Within the "Tester" tab, click "Test Method" button:17.JPG

 

 

Within the response box, copy the id of one IM channel of IM channel arrays:18.JPG

  •  Create a flow within Microsoft Flow, my flow's configuration as below:19.JPG

    Within Channel Name field of "Post message" action, paste the IM channel id that copied above.

 

I have made a test on my side and the flow works successfully as below:20.JPG

 

 

Best regards,

Kris

 

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jhalbert
New Member

Re: Email to Slack Personal IM

Thanks, I can confirm this works.

 

It doesn't appear that the HTML in messages is parsed.  I see the markup directly in the body of the message.   Do you know if there's any way this can be parsed (either removed or displayed properly)?

DN1
New Member

Re: Email to Slack Personal IM

@v-xida-msft I would edit this and make it a little more simple and replacing the entire API step with this simpler and painless step.

 

Each Slack channel and direct message has their own page/path. The path is in the last value/path of the url "THISVALUE". When you go to the desired channel in your web browser, copy that value and paste it as the Channel Name.

Example: 

https://app.slack.com/client/MSFLOWTST/THISVALUE

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,550)