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

Why saveAsync return ImmutableId in Outlook in Exchange online? #5247

Open
ttuyen1529 opened this issue Jan 8, 2025 · 2 comments
Open

Why saveAsync return ImmutableId in Outlook in Exchange online? #5247

ttuyen1529 opened this issue Jan 8, 2025 · 2 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback

Comments

@ttuyen1529
Copy link

I faced an issue with a tenant of customer cause my app to break since saveAsync return ImmutableId, not normal one then other call using that Id return Id malformed error..
So how it happen for Outlook..
I check in OWA and it did have prefer ImmutableId header in request to Outlook API..

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Jan 8, 2025
@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 Jan 8, 2025
@exextoc exextoc self-assigned this Jan 8, 2025
@whoanuragverma
Copy link

Hi @ttuyen1529, please let us know about the following details:

  1. What platform are you experiencing this issue on? (OWA/Monarch/Old Outlook/Mac)
  2. Please provide the code snippet, error message and repro steps.

@whoanuragverma whoanuragverma added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Jan 8, 2025
@ttuyen1529
Copy link
Author

Hi @whoanuragverma
This issue I see on a customer online session, I only have time to see it occurs on OWA.
And only with simple code snippet is:

Office.context.mailbox.item.saveAsync((res) => {
if (res.status.toString().toLowerCase() === "succeeded") {
ewsId = res.value;
// convert the item ID to a REST ID
id = Office.context.mailbox.convertToRestId(res.value, Office.MailboxEnums.RestVersion.v2_0);
resolve(id);
console.log(id);
} else {
resolve();
reject();
}
});

After that I use for call additional API to our back-end that use some EWS connection, but it return ID malformed error

I use some console code to check and I see request on customer machine request have this header.. so wonder why it happens on Outlook and where to turn on or off this on Outlook since I never heard Outlook have kind of this setting

36e586ed-25f7-4bf2-839d-9a0d1676842d

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Jan 8, 2025
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

3 participants