web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting the URL for OW...
Power Automate
Unanswered

Getting the URL for OWA email

(0) ShareShare
ReportReport
Posted on by

Hi

I'm working on a use-case where I wish to get the link to email that arrives to a shared mailbox.

yjamous_3-1648743853795.png

 

 

For that, I built a simple flow and to get the URL, I used the following (https://outlook.office.com/owa/?ItemID=[MESSAGE_ID]&viewmodel=ReadMessageItem&path=&exvsurl=1)

 

yjamous_0-1648743659636.png

The above flow works IF the flow is listening to PERSONAL mailbox. But with SHARED mailbox, I get the error below:

yjamous_1-1648743760586.png

 

 

How can I overcome this problem and how can I get the URL for the email item?

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Anonymous,

     

    It looks like you could use the conversationid property. You might need to replace or encode a couple of characters in order for the link to work though.

     

    Here is another thread about this approach:

    https://powerusers.microsoft.com/t5/Building-Flows/Get-a-direct-link-to-an-email-in-a-shared-mailbox-planner/td-p/952043

     

    Below is an example:

    https://outlook.office.com/mail/@{variables('SharedMailboxEmail')}/inbox/id/@{replace(encodeUriComponent(triggerOutputs()?['body/conversationId']), '-', '%2F')}

     

    outlookdirectconversationid.PNG

     

  • AnthonyInCO Profile Picture
    6 on at

    This seems to work, but only when the email is in the shared mailbox inbox.  My use-case is emails in a subfolder, and in that case, the subfolder will open, but the email will not.  

     

    When I open an email that's in the subfolder, and copy the URL, I can see this general structure: 

    https://outlook.office.com/mail/mailboxname@companyname.com/[FolderID]/id/[ConversationID]

     

    But pasting that very same URL back into the browser will open the mailbox with the folder, but does not open the email thread.  Is there is some type of argument that needs to get added after ConversationID to open up the email conversation?

     

    The only workaround of sorts I found was using this URL structure:

     

    https://outlook.office.com/mail/deeplink/readconv/[ConversationID]

     

    ConversationID does still need to go through encodeUriComponent function and the replace advised in this thread. I am using a Compose action to build the URL, so my expression looks like this with concat:

     

    concat('https://outlook.office.com/mail/deeplink/readconv/',replace(encodeUriComponent([ConversationID]),'_','%2B'))

     

    The problem with this is that it opens just the email, not the mailbox. Kind of like when you double click on an email as a popout. What I'm looking for is to open the mailbox and then display the email/conversation in question.

     

    **BTW, I only did replace '_' with '%2B', and not '-' with %2F. Maybe encodeUriComponent does that already, or maybe my conversation IDs just haven't had '-'

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard