Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.openLink doesn't work when running a Teams Personal App as an Outlook app #1784

Closed
1 of 4 tasks
michaelmaillot opened this issue Jun 7, 2023 · 12 comments
Closed
1 of 4 tasks

Comments

@michaelmaillot
Copy link

michaelmaillot commented Jun 7, 2023

Category

  • Enhancement
  • Bug
  • Question
  • Documentation gap/issue

Version

Please specify what version of the library you are using: [2.9.1]

Host context

Please specify what's the context of the host: [Outlook web]

Expected / Desired Behavior

When running the app.openLink function which includes a Teams chat message or an Outlook new meeting from an Outlook app (which is a Teams Personal App), it should work as it's part of the app capability, which is supported as stated in the documentation page.

Observed Behavior

When running the app.openLink function which includes a Teams chat message or an Outlook new meeting from an Outlook app (which is a Teams Personal App), nothing happens and no error thrown in the browser console. However, it works from the Office.com and Teams contexts.

@ghost
Copy link

ghost commented Jun 7, 2023

Hi michaelmaillot! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@Nivedipa-MSFT
Copy link

@michaelmaillot - Thanks for reporting your issue. We will test this and update you soon.

@vikramtha
Copy link
Contributor

Hi Michael,

I am investigating this issue. I wanted to ask what specifically you are trying to do by using app.openLink in this case.

From what I understand, it seems that you are trying to deeplink to open a Teams Chat Message Dialog or deeplink to open a Outlook Meeting Dialog. If this is correct, have you tried using the strongly-typed APIs such as the Chat Module or the Mail Module

Granted the Chat capability does not function outside of Teams and the Mail capability only works in Outlook. If you are trying to use the Chat capability outside of Teams or use the Mail capability outside of Teams, please let me know and we can see what the right action would be.

@michaelmaillot
Copy link
Author

I didn't try to use the chat API neither the mail one because of their context limitations, only the app. Besides, the mail capability doesn't contain a method to compose a new Outlook meeting.

The thing is that the openLink function worked from both Teams & office.com as expected, when requesting to open a Teams chat or a new Outlook meeting. But none of them worked from Outlook as an app.

Do you need additional info such as code snippet and / or app demo as a gif?

@vikramtha
Copy link
Contributor

Hi Michael, sorry for the late response, but yes a code snippet of the deeplink you used or a video demoing the behavior would be extremely useful.

@ghost
Copy link

ghost commented Jun 24, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost ghost closed this as completed Jun 27, 2023
@michaelmaillot
Copy link
Author

Hi @vikramtha sorry for late response, below a record of the behavior:

deeplink-app-outlook-glitch

And here's the code snippet:

<div style={{ columnGap: "15px", display: "flex" }}>
  <Button appearance="primary"
    onClick={async () => {
      await teamsSdk.teamsJs.app.openLink("https://teams.microsoft.com/l/message/[CONVERSATION_ID]@thread.skype/[PARENT_MESSAGE_ID]?tenantId=[TENANT_ID]&groupId=[GROUP_ID]&parentMessageId=[PARENT_MESSAGE_ID]&teamName=TestGroupOk&channelName=General&createdTime=[PARENT_MESSAGE_ID]");
    }}
  >
    Open Team Chat
  </Button>
  <Button
    onClick={async () => {
      await teamsSdk.teamsJs.app.openLink("https://outlook.office.com/calendar/deeplink/compose?&subject=Sushi%20Training&location=Convention%20Center&startdt=2024-02-29T19%3A00%3A00&enddt=2024-03-01T00%3A00%3A05&body=Remember+to+bring+your+force!");
    }}
  >
    Open Calendar invite
  </Button>
</div>

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Jul 3, 2023

@michaelmaillot - Thanks for sharing the code snippet and demo. We will test this and update you soon.

@vikramtha
Copy link
Contributor

Thanks Michael! Looks like you are right most of all these links do not function correctly in Outlook OWA yet. I have been testing more links and noticing the same behavior for Outlook OWA as it is different from Outlook Win32 Desktop App. I will reach out to the Engineers and PMs to get this work prioritized

@michaelmaillot
Copy link
Author

Good to know! Thanks for the internal feedback.

In the meantime, regarding the documentation page, would it be relevant to request / submit an update that reflects current behavior according to you?

@Nivedipa-MSFT
Copy link

Thanks for your feedback. We will inform the same to the concerned team.

@KaratLee
Copy link

KaratLee commented Nov 8, 2024

@vikramtha @Nivedipa-MSFT It seems that this problem has not been solved. I also encountered this problem. Is there any update?

#2608

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants