cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jhalbert
Level: Power Up

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 Team
Community Support Team

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 Team
Community Support Team

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
Level: Power Up

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
Level: Power Up

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 & 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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,326)