Search code examples
javascriptdynamics-crmdynamics-crm-2013

How to know form is saved first time in dynamics crm


I want to fire some actions after form is saved only first time using javascript. Not in every time when form will save.

Please suggest if there is some event or other solution .


Solution

  • Create a form level variable, hasBeenSaved, defaulting it to false. In your onSave Event, you can check to see if it is false, (this is the first time the form is being saved) then set it to true.