Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

JavaScript Code To Test For Open Case Activities In CRM 2011

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
    Paul Butler 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans