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

Sharing the copy of a document from an office application to outlook classic does not initialize composeType #4933

Open
Discolai opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@Discolai
Copy link

Provide required information needed to triage your issue

Outlook classic addins are unable to get the compose type of messages when sharing a copy of an office document to outlook.

Your Environment

  • Platform: PC
  • Host: Outlook Classic
  • Office version number: 16.0.17928.20156
  • Operating System: Windows 11

Expected behavior

Office.context.mailbox.item.getComposeTypeAsync should return Office.MailboxEnums.ComposeType.NewMail

Current behavior

Office.context.mailbox.item.getComposeTypeAsync returns an AsyncResult with the following error

{"name":"InternalError","message":"The operation failed.","code":5001}

Steps to reproduce

  1. Open a new word document and save it to disk (do not save it to onedrive or sharepoint)
  2. Share it as a copy to outlook (File -> Share -> Attach a copy instead)
  3. Any calls to Office.context.mailbox.item.getComposeTypeAsync will fail in this context. Both for add ins running as a launch event and in task panes

Context

We are currently working around this issue by logging the error and returning Office.MailboxEnums.ComposeType.NewMail when Office.context.mailbox.item.getComposeTypeAsync fails. However, this leads to a lot of noise, since this is a common use case for our users.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Sep 27, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Sep 27, 2024
@exextoc exextoc self-assigned this Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback
Projects
None yet
Development

No branches or pull requests

2 participants