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

InternetMessageId is blank in SelectedItemDetails when selecting an email while searching #5289

Open
MohamedMoussaTTW opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels

Comments

@MohamedMoussaTTW
Copy link

MohamedMoussaTTW commented Jan 19, 2025

When selecting an email after doing an email search, the internetMessageId when calling getSelectedItemsAsync is blank.

Seems to occur only in Outlook Classic.

Environment

  • PC Desktop
  • Outlook (Classic)
  • Office version number: Office 365 MSO Version 2411 Build 16.0.18227.20082
  • Windows 10

Expected behavior

When clicking on an email, I expect the internet message Id field to be filled.

Current behavior

The internet message Id field is not filled in getSelectedItemsAsync callback when clicking on emails during a search.

Steps to reproduce

  1. Select an email and call getSelectedItemsAsync. The internetMessageId field will be filled in the callback.
  2. Do a search and select the same email again. The internetMessageId field will be blank
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jan 19, 2025
@MohamedMoussaTTW MohamedMoussaTTW changed the title InternetMessageId not filled in SelectedItemDetails when selecting an email while searching InternetMessageId is blank in SelectedItemDetails when selecting an email while searching Jan 19, 2025
Copy link

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

The issue here seems related to the format of the internetMessageId which is enclosed in <>. The value is being assumed as a HTML tag and hence, not being displayed in taskpane. You just need to change "innerHTML" to "innerText" and keep the remaining code as it is. Could you please try that?

Reference:

@keyur32 keyur32 added Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants