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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Paul Butler Profile Picture
    5 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans