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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Attachment View /edit/delete by other users

(0) ShareShare
ReportReport
Posted on by 339

Hi Everyone ,

attachment attached by a particular deparment (Purchase ) / User , can be hidden from other users ? 

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Mohamed Shuhaib,

    Are you talking about the document management attachment?

    If yes then I think you need to do customization to make this work.

    Is this Ax 2012 or D365?

    Thanks,

    Girish S.

  • shuhaib Profile Picture
    339 on at

    Hi Girish , 

    Yea in document managment , Like we are attaching Documents in Purchase requisition . 

    We are using AX 2012.

  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    If you want to show the documents that are attached by the user only, then I think you need to customize the "DocuAttachment" form - You can add range to "DocuRef" datasource for the field "Created By" and assign the current  login user value.

    So this will restrict the form to display the documents that are added by the logged in user.

    Thanks,

    Girish S.

  • shuhaib Profile Picture
    339 on at

    Hi Girish 

    It Worked . Thank you 

    Now for deleting of the attachment , like if a user attaches something and another user who has access to all the document (user where range filter is not applied, like supervisor /manager ) , how to disable deleting of this attachment from that user (superviosor /manager ) .

    Note : The user (Supervisor / manager ) should be able to delete the attachment attached by him . but not delete the attachment by another user

  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Mohamed Shuhaib,

    For this also you need to do customization.

    You can add a validation in the "DocuRef" form datasource "ValidateDelete" method.

    If(DocuRef.CreatedBy == curuser())
    {
        ret = super();
    }
    else
    {
        ret =checkfailed("Cannot delete");
    }

    Please mark the useful answers are verified.

    Thanks,

    Girish S.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 657

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 453 Super User 2026 Season 1

#3
Martin Dráb Profile Picture

Martin Dráb 190 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans