Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Prohibit the Deletion of sent and revcieved E-Mails

Posted on by Microsoft Employee

Hello,

Is there a way to allow users to delete their drafts but prohibit the deletion of sent and received emails? 

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,872 on at
    RE: Prohibit the Deletion of sent and revcieved E-Mails

    Hi, Franzmann

    You can follow the steps below to achieve you request.

    1. Open your app and go to Advanced Settings > Settings > Customizations > Customize the system.

    2. Select the ‘Processes’ from the left navigation bar and new a ‘Workflow’ as the following picture.

    65016.png

    4130.png

    3. Set the steps of the Workflow.

    38562.png

    4. You can set the message for the Cancelling in ‘Set Properties’

    10311.png

    5. Save and activate it.

    6. Try to delete types other than Draft emails. You’ll got the following message and the email will not be deleted.

    841488.png

    Hope this will help you.

    Best Regards,

    Nya

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Prohibit the Deletion of sent and revcieved E-Mails

    You could try a real time workflow.  Trigger on delete, if status is received or sent then cancel, else succeed.

  • Suggested answer
    RE: Prohibit the Deletion of sent and revcieved E-Mails

    Hello,

    Using the privileges associated to security role you cannot accomplish that, since the "delete" privilege is consented for Email entity and would not consider the record state.

    Maybe you could use a Display Rule through Ribbon Workbench in order to hide the Delete button for "ReadyOnly" (emails sent) records.

    Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans