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 · 14 comments
Open

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

ttuyen1529 opened this issue Jan 8, 2025 · 14 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown

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
@whoanuragverma
Copy link

What error are you getting while making the EWS request?

@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 10, 2025
@ttuyen1529
Copy link
Author

ttuyen1529 commented Jan 10, 2025

image
here... @whoanuragverma
that why I take some investigate and found out that ID is ImmutableId

@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 10, 2025
@whoanuragverma
Copy link

I see you are trying to make an EWS call but you are converting it to Outlook REST API Id in the snippet you provided, can you try sending the EWS request without converting to Outlook REST ID?

It is mentioned in our docs as well, these two IDs are not identical. https://learn.microsoft.com/en-us/javascript/api/outlook/office.messagecompose?view=outlook-js-1.11&preserve-view=true#outlook-office-messagecompose-saveasync-member(2)

@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 10, 2025
@ttuyen1529
Copy link
Author

@whoanuragverma I already tried that and it is the same..
Only one way works is actual using ID return from getItemId function and call EWS..
And noted that this is actual running product, and only see this in one of our customer tenant, so...

@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 10, 2025
@ttuyen1529
Copy link
Author

Any updates? @whoanuragverma

@patilganesh-msft
Copy link

@ttuyen1529
Could you pl tell us which tenant is facing this issue? What's the environment / region the tenant exists?
Does it have any other configurations set than others?

@patilganesh-msft patilganesh-msft 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 28, 2025
@exextoc
Copy link
Collaborator

exextoc commented Jan 30, 2025

@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Feb 3, 2025
@patilganesh-msft
Copy link

After sharing the logs, kindly give access to "exextoc". Thank you.

@microsoft-github-policy-service microsoft-github-policy-service bot 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 Feb 4, 2025
@DivyaPatidar
Copy link

Thank you @ttuyen1529. We have downloaded the log file and removed the link from here.

@OfficeDev OfficeDev deleted a comment from ttuyen1529 Feb 10, 2025
@DivyaPatidar
Copy link

@ttuyen1529 Is this happening in multi-account/ shared items scenario?

@DivyaPatidar DivyaPatidar added Status: under investigation Issue is being investigated Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Feb 10, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Feb 16, 2025
@ttuyen1529
Copy link
Author

Hi @DivyaPatidar
yes, multi account..
We do not test shared items scenario yet...

@microsoft-github-policy-service microsoft-github-policy-service bot 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 Feb 18, 2025
@mobisw-msft
Copy link

Hey @ttuyen1529 , this is the same issue as reported in #5326

The issue has been fixed, pending rollout. We will update the same once the fix is rolled out and available.

@mobisw-msft mobisw-msft added Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown and removed Needs: attention 👋 Waiting on Microsoft to provide feedback Status: under investigation Issue is being investigated labels Feb 21, 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 Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown
Projects
None yet
Development

No branches or pull requests

6 participants