Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Only current owner of Case should be able to close it as solved

(0) ShareShare
ReportReport
Posted on by 350

Hi, our customer is requesting that only the current owner of a case should be able to closed as solved. Is there any simple way to do this using permissions in Security Roles? Any other suggested approach to do this?

Best regards,

Xavier Villafuerte

*This post is locked for comments

  • Xavier Villafuerte Profile Picture
    Xavier Villafuerte 350 on at
    RE: Only current owner of Case should be able to close it as solved

    Thanks Prashant Shukla. It worked like a charm.

  • Suggested answer
    Zohaib Uddin Khan Profile Picture
    Zohaib Uddin Khan 2,811 on at
    RE: Only current owner of Case should be able to close it as solved

    Solution #1: Reduce the privilege of 'Write Case' and 'Append To Case' as User level access.

    Solution #2: Write a Synchronous Plugin on Message: Update, Entity: Incident and in that plugin check if statecode and statuscode changes to Resolved then check current user vs owner

    In order to find Current User:

    IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

           IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));

       Guid userId = context.InitiatingUserId;

  • Verified answer
    PS Profile Picture
    PS 23,577 on at
    RE: Only current owner of Case should be able to close it as solved

    Hi Xavier

    Create a real time workflow and run it on case status change

    Check condition if Case status= resolved and case owner does not equal to case last modified by

    Action, stop workflow with a status of cancel (Enter your message for users here)

    That's it !

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans