Email deletion using Logic App

Sourav 170 Reputation points
2023-09-24T03:00:34.0633333+00:00

I'm using Delete email(v2) for deleting the email in my logic app.
The problem I'm facing is, the deleted email goes straight into Recoverable items not into the deleted items list.
What might be the reason for this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,094 questions
0 comments No comments
{count} votes

Accepted answer
  1. Konstantinos Passadis 19,071 Reputation points MVP
    2023-09-24T11:10:47.7066667+00:00

    Hello @Sourav !

    In Exchange Online, when you use the "Delete email (V2)" action in a Logic App, it performs a "hard delete" operation by default. A "hard delete" operation bypasses the "Deleted Items" folder and places the deleted email directly into the "Recoverable Items" folder (Purges subfolder). This is why you are observing the deleted email going straight into "Recoverable Items" instead of the "Deleted Items" folder.

    You can instead use the "Move email (V2)" action in your Logic App and specify the target folder as "Deleted Items". This will perform a "soft delete" operation, and the email will be moved to the "Deleted Items" folder.


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.