cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vysta
Frequent Visitor

Open Email from PowerApps in OWA

I have a PowerApp displaying emails for users and I want to be able to have the user open the email by selecting from PowerApps and launching the selected email in OWA. Is this possible? Would I need to use Power Automate?

1 ACCEPTED SOLUTION

Accepted Solutions
UdayAdhikari
Continued Contributor
Continued Contributor

@vysta - I would confirm that the email is in Inbox folder and not in other folders. Here is a base code that I was testing with and I am able to open emails fine. Note: Change first part of the URL as required, I was testing against my personal outlook email address with no Office 365 license.

 

PowerAutomate-LaunchEmail.png

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thanks

View solution in original post

5 REPLIES 5
UdayAdhikari
Continued Contributor
Continued Contributor

@vysta - I am guessing you are using Outlook.com connector in your app to display emails. If so, you could try something like this:

Set(
    gblEmailOWAUrl,
    "https://outlook.office.com/mail/inbox/id/" & EncodeUrl(First(colEmail).ConversationId)
);
Launch(gblEmailOWAUrl)

Note: colEmail in my example above is a collection of emails loaded by calling Get Emails.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thanks

v-siky-msft
Community Support
Community Support

Hi @vysta ,

 

Please try to put the following code to OnSelect property of Email label.

Launch("https://outlook.office.com/mail/deeplink/compose?to=" & Self.Text &"&subject=Customer Service Request&body=Add+Your+Request+here")

Hope this helps.

Sik 

Yes, @UdayAdhikari that launches OWA but it does not open the selected email from PowerApps. I would like to open the actual email message in OWA or at least default select the message so it is the correct one being previewed 

UdayAdhikari
Continued Contributor
Continued Contributor

@vysta - I would confirm that the email is in Inbox folder and not in other folders. Here is a base code that I was testing with and I am able to open emails fine. Note: Change first part of the URL as required, I was testing against my personal outlook email address with no Office 365 license.

 

PowerAutomate-LaunchEmail.png

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thanks

@UdayAdhikari That did the trick! I changed the URL to Launch("https://outlook.office.com/mail/inbox/id/"&EncodeUrl(Gallery1.Selected.ConversationId)) and was off to the races!


Thank you!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,968)