Hi @Praveen Santhosh
This header needs to be included in every API request to ensure the ID remains immutable. If the message ID is still changing after including this header, it could be due to not including it in all the requests or a potential issue with the implementation.
Here's a general approach to ensure the message ID remains the same:
- Include the
Prefer: IdType="ImmutableId"
header in the initial API request when creating or getting the message. - Use the same header when sending the message.
- Again, include the header when moving the message to another folder.
This header only applies to the request it is included with, so it's crucial to include it in every request related to the message you want to keep the ID immutable for.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.