0

I'm trying to get Immutable IDs for messages but I haven't able to get them. Here's what I tried to do:

  1. endpoint : https://graph.microsoft.com/beta/
  2. Header: added Prefer: IdType="ImmutableId" (I had to use the escape "\" character to use the quotes)

I did my message list request before and after a change to the message's parent folder but the message "id" is not immutable.

Do we get any indication that the "Immutable" preference has been taken into account ?

Is it better that I switch to Outlook API (v1.0 or v2.0) to get the immutable IDs ?

Thanks for your answer.

2 Answers 2

1

You have to add header Prefer: IdType="ImmutableId" in both places, when you create a subscription and when you move the email.

Sign up to request clarification or add additional context in comments.

Comments

0

Do we get any indication that the "Immutable" preference has been taken into account ?

Just waiting for the official states, any indication is not necessarily reliable.

Is it better that I switch to Outlook API (v1.0 or v2.0) to get the immutable IDs ?

Yes for real production applications, beta version is mainly for test/preview.

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.