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

Need to add custom icon from mapi property in mailbox from outlook web add-in office.js #3413

Closed
Rajnish-Asite opened this issue Jun 8, 2023 · 4 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.)

Comments

@Rajnish-Asite
Copy link

Rajnish-Asite commented Jun 8, 2023

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Windows, OWA
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number: Microsoft® Outlook® for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
  • Operating System: Windows
  • Browser (if using Office on the web): Chrome

Expected behavior

Green tick icon should be displayed on outlook mailbox item from outlook web add-in office.js.

image

Current behavior

We need to show Green tick icon in mailbox item as we are showing from VSTO Pluging using below code-
mailItem.PropertyAccessor.SetProperty("http://schemas.microsoft.com/mapi/proptag/0x10800003", 312)

Now we need to set Green tick in mailbox item from web add-in So we tried custom properties as well as single extended value property to set on mailItem but still we are not able to show Green tick.

Steps to reproduce

  1. First we tried to add custom property as below
Office.context.mailbox.item.loadCustomPropertiesAsync((result) => {
    console.log(result);
    let customProps = result.value;
    customProps.set("http://schemas.microsoft.com/mapi/proptag/0x10800003", 312);
    customProps.saveAsync((asyncResult) => {
        console.log(asyncResult);
    })
});
  1. Second We tried with updateMessage reqeust from graph api to modify/add singleValueExtendedProperties in mailItem
async updateMessage(itemId) {
    try {
      const accessToken = await this.getMicrosoftAccessToken();
      return await fetch('/me/messages/'+ itemId , {
        method: 'PATCH',
        headers: {
          'content-type': 'application/json',
          authorization: `Bearer ${accessToken}`
        },
        body: JSON.stringify({
          singleValueExtendedProperties: [
            {
               "id":"String {e7abc95f-cf74-4d45-880c-04a779a6541b} Name 0x10800003",
               "value": "312"
            }
          ]
        })
      }).then(res => res.json());
    } catch (e) {
      console.log(e);
    }
 }

Context

We have developed web add-in to save emails directly on our Cloud So after saving email we are showing green tick on that saved mail item for user better experience. So this Green tick is very important feature for us.

Please do needful asap.

@ghost ghost added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jun 8, 2023
@exextoc exextoc self-assigned this Jun 8, 2023
@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 Jun 8, 2023
@exextoc
Copy link
Collaborator

exextoc commented Jun 9, 2023

Hi @Rajnish-Asite
Currently the feature to add a custom icon to outlook mailbox items is not there. We track Outlook add-in feature requests on our Tech Community Page.Please add your request there and select appropriate labels. Feature requests on Tech Community are considered, when we go through our planning process.

@exextoc exextoc added Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.) Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Jun 9, 2023
@ghost ghost added the Status: no recent activity Issue or PR is stale (no recent activity) label Jun 13, 2023
@ghost
Copy link

ghost commented Jun 13, 2023

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

@ghost
Copy link

ghost commented Jun 16, 2023

This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue.

@ghost ghost closed this as completed Jun 16, 2023
@Rajnish-Asite
Copy link
Author

@exextoc New Feature request has been raised on your Tech Community Page as given below-
https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/add-a-custom-icon-to-outlook-mailbox-items-from-outlook-web-add/idi-p/3856477

@ghost ghost added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Status: no recent activity Issue or PR is stale (no recent activity) Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Jun 26, 2023
This issue was closed.
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 Type: product feature request Office JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.)
Projects
None yet
Development

No branches or pull requests

2 participants