Hi Team,
I need your help regarding an email-opening functionality in an OutSystems Reactive application.
I have generated a below URL that successfully opens Outlook in the browser. However, it does not open the specific email message that I want to display. Instead, Outlook opens normally and shows the mailbox/inbox.
"https://outlook.cloud.microsoft/mail/"+SharedMailbox+
"/"+FolderName+
"/"+ConversationId+"?ItemID="
+OutlookMessageId+
"&exvsurl=1&viewmodel=ReadMessageItem"
Could you please help me understand how to generate a URL that opens a specific email directly in Outlook Web?
Thank you.Meer Imtiyaz
@Meer Imtiyaz Ali : Please try using the Microsoft Graph API.
Since you already have the Message Id, you can use the Get Message API by passing the Message Id and Shared Mailbox email address. The response contains the webLink property, which you can use to open the specific email directly in Outlook Web.
eg: GET https://graph.microsoft.com/v1.0/users/{SharedMailboxEmail}/messages/{MessageId}?$select=id,webLink
Reference : https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http
btw I have not tried this approach myself, but based on the Microsoft Graph documentation, this should work.