web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Prevent users from deleting Timeline Attachment

(0) ShareShare
ReportReport
Posted on by 8

Hi All, 

We show timeline on each contact record, where we attach documents generated via a workflow, i noticed users are able to delete these attachments. 

Question is: How can i prevennt users from deleteing these attachments. 

I have checked and none of the security role has got DELETE privilege on the notes, activity, also nothing timeline:

pastedimage1657638305442v1.png

pastedimage1657638335477v2.png

pastedimage1657638365873v3.png

What else can i check and do to prevent them from deleting. 

Thanks,

PS

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Prevent users from deleting Timeline Attachment

    Hi,

    Check if user is part of any Team and Team has security role assigned which has the privilege to Delete Notes.

    Also, can you please remove Delete permission from Contact to see if it works.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Prevent users from deleting Timeline Attachment

    Hi PS10,

    By attachments do you mean the attachments in the notes?

    If so, you can refer the following link to write a plugin on pre-create of Note:

    Restrict Delete of Note attachment in Dynamics 365 if user is having missing Delete privilege on Note record. - Debajit's Power Apps & Dynamics 365 Blog (debajmecrm.com)

    Or you can use a real-time process to block attachments deletion:

    Create a real-time workflow on Notes entity to throw an error if File Size is  zero (this means file is removed).

    Here are the steps to follow:

    1.Go to Advanced Settings -> Processes to create a new Workflow (Realtime) for Note entity.

    pastedimage1657691947672v1.png

    2.Set trigger--Update (before): select File Size field.

    pastedimage1657693462264v6.png

    3.set condition--if Note Size is greater than 0 and step--Stop Workflow as Cancelled (set error message in properties)

    pastedimage1657692822209v3.png

    4.Save and active it.

    Test:

    delete the attachment and save it 

    pastedimage1657693303085v5.png

    The following error will appear:

    pastedimage1657693237973v4.png

  • PS10 Profile Picture
    8 on at
    RE: Prevent users from deleting Timeline Attachment

    Hi Bipin,

    None of the security role has got delete permision.

    Thanks,

    PS

  • PS10 Profile Picture
    8 on at
    RE: Prevent users from deleting Timeline Attachment

    Hi Leah Ju,

    Thank you for replying, seems a very feasible solution but unfortunatley the workflow is not working for me, i tried bot equal and greater than equal to 0 in the condition as it was not very clear and both let the user delet the atachment.

    I cannot write a plugin so cant comment on that.

    Thanks,

    PS

  • Community Member Profile Picture
    on at
    RE: Prevent users from deleting Timeline Attachment

    Hi PS10,

    Could you share screenshots of your workflow?

  • PS10 Profile Picture
    8 on at
    RE: Prevent users from deleting Timeline Attachment

    Hi Leah Ju,

    For some reason, I am unable to paste the image, tried various ways and i know i have been able to do so in past :(

    Thanks,

    PS

  • PS10 Profile Picture
    8 on at
    RE: Prevent users from deleting Timeline Attachment

    ...pastedimage1657881597975v4.png

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Prevent users from deleting Timeline Attachment

    Hi PS10,

    You can try to select 'the owner of the workflow' and make the workflow owner is administrator, then test again:

     pastedimage1658124502241v1.png

  • Ram Prakash Profile Picture
    2,287 on at
    RE: Prevent users from deleting Timeline Attachment

    Hi,

    Please check the following items

    1. Check which teams you are in and cross check the security role.

    2. If its good, as per oob behvaiour it will avoid it to delete else you can create Plugins to achive the same.

  • PS10 Profile Picture
    8 on at
    RE: Prevent users from deleting Timeline Attachment

    Hi Leah Ju,

    I tried with owner as execution of the flow didnt work, logic seems to be right but problem is getting the workflow triggered, for some reason it doesnt take file size a s a change and doesnt trigger.

    Thanks,

    PS

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 130

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 118 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 57

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans