MS Dynamic CRM 4.0 serviceappointment closed state javascript event

Posted by Jeroen on Stack Overflow See other posts from Stack Overflow or by Jeroen
Published on 2010-03-23T15:28:29Z Indexed on 2010/03/23 15:33 UTC
Read the original article Hit count: 472

Hi,

I need to do the following:

In Crm, you have serviceappointments (serviceactivities). 1 appointment can have a state, ( like arrived, pending, closed, ... ). When i save the form (onsave event), It should catch if the form is putted closed state and then it should do something.

I can get the state easily:

alert(crmForm.all.statuscode.DataValue)

I hanged this onto an onsave event. But when i put a serviceappointment into closed state, it first calls the onsave event with previous state and then puts it in closed state.

Is it possible to catch if it's putted in closed state?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about CRM