How can i get original folder name of deleted email using graphql outlook api ?

Vikram Singh 0 Reputation points
2024-07-02T13:19:01.6033333+00:00

I am working on Outlook integration and used the Move Folder API to delete an email. However, there is an issue when restoring the emails because I cannot get the original folder name of the email. How can I get the original folder name so I can easily restore them to their original folder?

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,326 Reputation points
    2024-07-02T14:17:15.74+00:00

    The original folder is stored in the Last Active Parent FolderId property. So, given a deleted message you would need to read this property. But using it requires extra effort. I've never used it myself but this blog article talks about how to use it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.