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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by 352

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

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

    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 !

  • Suggested answer
    Zohaib Uddin Khan Profile Picture
    2,822 on at

    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;

  • Xavier Villafuerte Profile Picture
    352 on at

    Thanks Prashant Shukla. It worked like a charm.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans