Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

JavaScript Code To Test For Open Case Activities In CRM 2011

(0) ShareShare
ReportReport
Posted on by

Hi.  We are using CRM 2011 On Premise.

We have built our Case processing so that ownership of a case will change according to a custom field called Case Status.  The thing is that we do not want to change the Case Status (and as a result the owner of a case while there are open activities associated with that case).

If someone tries to change the Case Status field we want to trigger some JavaScript that will see if there are Any Open activities associated with the case.

If there are Not any Open activities then we want to allow that person to change the Case Status field and then the ownership.

If there are Open activities then we do Not want to change the Case Status field and want to send a message to the screen saying something along the lines of "You cannot change the Case Status until all of the open activities are closed."

Can someone help point us in the right direction for creating that JavaScript?  It would be even better if the proposed solution is Microsoft CRM supported.

Thank you.

Rick Bellefond
RB Data Services
www.rbdata.com

*This post is locked for comments

  • Paul Butler Profile Picture
    5 on at
    RE: JavaScript Code To Test For Open Case Activities In CRM 2011

    Hi Rick,

    Did you get this sorted as this is exactly the problem I have at the moment.

    Regards,

    Paul

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans