Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Delete Attachment(Note) in Dynamics 365 Portal

Posted on by 1,825

Hi Experts,

I configured Notes in my Entity form , same as mentioned in the below link
https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/configure-notes

I have a requirement to have a 'Delete' option for the attached file. 
After investigating I found that 'Delete' option get appears only for logged-in user not for all.

Any alternate to achieve this

Thanks in advance.

*This post is locked for comments

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Thanks Arpit,

    I am using the licensed instance.

    Thank you for your suggestions, will do that.

    Hemant

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Hi Hemant,

    Are you using trial CRM instance or licensed one?

    Auto Cache refresh is the known issue of the CRM Portal especially in case of a trial instance. You cannot control that except doing settings at your end like Enable Tracking for that entity, Publish all customization, manual clear cache and Restart the Portal.

    I would recommend you to raise a support ticket with Microsoft to get this issue resolved.

    I have posted the detailed information about the same here :

    https://community.dynamics.com/crm/f/117/t/226250?pi51685=2#responses

    If found useful, please mark the answer as verified.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.com

     

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Hi Arpit,

    Thank You very much for your suggestions.  I liked your idea. I have achieved my requirement in similar way.

    Now I am experiencing when I add new notes,the Notes(Attachments) are displaying in portal only when I clear the cache.

    Not sure how to resolve this, Could please suggest on this?

    Hemant

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Hi Hemant,

    Unfortunately, It's not possible. Ideally, If anonymous user is able to create the notes so he/she should have performed other operations too. But might be due to some security implications MS has not allowed to do so.

    One alternative I can suggest you that, put a button/hyperlink next to note title in order to delete the note.

    Open a task entity form (in dialog/popup) on click of that link and put the Guid of the note (on which the user has clicked) in the subject field and trigger Click in order to create a new task in the CRM.

    Show the message on task submission - Note Delete request has been initiated. Do this whole action by making the entity form hidden using Javascript. The user should only see the success message.

    7701.Capture.PNG

    Now, as soon as a task will get created in CRM, write a plugin/custom workflow on task creation and retrieve the note by Guid (contains in the subject field) and delete the note.

    Can make this process more user-friendly by putting some more efforts in JS and HTML code.

    Pshedu Code:

    var notguid = First write the logic to get the note guid on click of hyperlink.

    $('#subject).val(noteguid);

    $('#insertbutton').click();

     

    Hope you understood.

    If you find the answer as useful, please mark it as verified

     

    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Thanks Gautam,

    But it doesn't work for the Anonymous users.

    Hemant

  • Hemant Kumar Sahu Profile Picture
    Hemant Kumar Sahu 1,825 on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Thanks Arpit,

    I wanted to have a Delete option as well for Anonymous users.|

    Its available only for the Authenticated users.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Hi Hemant ,

    You need to enable delete options

    Please refer below-hope this helps.

    docs.microsoft.com/.../configure-notes

  • Suggested answer
    Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Delete Attachment(Note) in Dynamics 365 Portal

    Hi Hemant,

    If you want to expose the Notes to Anonymous user, you need to manage this using Entity Permissions and Web Roles. I have done following configurations in order to display Notes on Case entity for Anonymous users.

    Created a New Entity Permission with Global Scope for Note Entity.

    5430.1.JPG

    Created a New Entity Permission with Global Scope for Case Entity.

    3364.3.JPG

    Associate Anonymous User Role to both the above Entity Permissions.

    6087.4.JPG

    And here is the output:

    5430.1.JPG


    If found useful, please mark the answer as verified.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.com

     

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans