David Clarke
David Clarke

Reputation: 13266

ItemId not valid after email sent

This SO question answers part of my question - when I save an email I can retrieve its ItemId but as soon as it's sent the ItemId is invalid and a request to to the Outlook rest api to retrieve the email returns a 404.

My question then is how do I subsequently identify the email I just sent if the ItemId is different?

Upvotes: 0

Views: 85

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66276

You can stamp the message with your own custom property - it will be preserved when the message is moved to the Sent Items folder. You will be able to search on that property.

Upvotes: 1

Related Questions