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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

User needs ability to delete Appointments but not other Activity Types

(0) ShareShare
ReportReport
Posted on by

I have a user that needs permission to delete Appointments but not other types of Activities.  OOB CRM allows for setting role perms to delete Activities but that would allow the user to delete *all* activities - not just Appointments.  There seems to be no granularity of control as to which types of Activities can and cannot be deleted.

One thing I've learned from CRM customizations is to think outside the box and as soon as you say it can't be done, someone comes up with a solution.  So I'm wondering if there is some other way to tackle this problem than the obvious way of setting Security Roles.

Any input appreciated.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    PS Profile Picture
    23,577 on at

    Unfortunately, permissions work collectively on all activities.

    But there's a work around:

    Step 1: Create a Two Option (Yes/No) field on appointment form and lets call it DELETE

    Step 2: Create a workflow

    Entity Appointment

    Trigger on- Step 1 field change

    Action: Delete Record (Appointment)

  • Suggested answer
    PS Profile Picture
    23,577 on at

    If you want just one user to be able to delete, make this field 'Field Security Enabled' and in the security profile, add this user with create,read,write roles.

    Let me know, if you need further help !

  • Daniel at VNS Profile Picture
    on at

    Thank you Prashant.  So are you saying that this yes/no field would be manually changed only by the user with field security perms to trigger a WF to delete, rather than using the delete button?  That'd mean they have to open/update each record, which I'd like to prevent, so I'm thinking a cleaner solution might be a WF to both set the yes/no field, and delete.  We'd set the field since WF's don't have permissions control but since the field the WF would change would have permissions, only the specified user could execute the WF successfully.  This is in line with what you're thinking right?

    Thank you again for thinking OOB - this is the nudge I think I needed.

  • Suggested answer
    PS Profile Picture
    23,577 on at

    Since users do not have delete privilege on ACTIVITIES, they will not be able to see 'Delete button', but users having Field security permission on the custom delete can either open or bulk edit from the grid to change this delete field to YES.

    Users having permissions to access this field, can only enable the workflow to run, as this field is the trigger.

  • Daniel at VNS Profile Picture
    on at

    Prashant I actually cannot even find a DELETE action in the list of available WF options so it looks like this approach (to create a conditional WF job to delete the records) is a no-go.

  • Suggested answer
    PS Profile Picture
    23,577 on at

    I am sorry for the confusion, I meant 'deactivate'

    Action in workflow would be, change status to inactive

    Later you can create a bulk delete job by going to system settings which runs everyday or whatever time period u like

    By default it will show minimum 7 days but you can manually type in 1

  • Suggested answer
    PS Profile Picture
    23,577 on at

    I am sorry for the confusion, I meant 'deactivate'

    Action in workflow would be, change status to inactive

    Later you can create a bulk delete job by going to system settings which runs everyday or whatever time period u like

    By default it will show minimum 7 days but you can manually type in 1

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans