locked
deleting Emails when there status is Draft RRS feed

  • Question

  • Hi,

    I have a requirement where,

    I have 3 users User1,User2 and User3 - everyone has delete permissions. Now when Only user2 deletes the Email which is in draft status, need to delete that record, apart from User2 if any user tries to delete the records it shouldn't allow.

    Guide me with sample code and screenshots.


    jo

    Tuesday, February 24, 2015 8:57 AM

All replies

  • Hello,

    I would not give you any sample code or screenshots. Just advice - download SDK and learn how to develop plugins. Once you can develop plugins you can develop a plugin that will handle Delete message of email activity and if user is not allowed to delete particular email - plugin code should generate an Exception.


    Dynamics CRM MVP/ Technical Evangelist at SlickData LLC
    My blog

    Tuesday, February 24, 2015 10:19 AM
    Moderator
  • Another option would be check the use security role of user or id of user and hide the delete button.

    Another option would be using security role. Make the user (who will be able to delete record) owner of emails on create. Give the user permission to delete their own activities.   


    Regards Faisal

    Tuesday, February 24, 2015 10:59 AM