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?
Solved! Go to Solution.
@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.
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
@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
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
@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.
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!