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
v-xida-msft
Community Support
Community Support

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
v-xida-msft
Community Support
Community Support

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

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

@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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (29,698)