Blog Archives

Auto-Save feature in CRM 2013

CRM 2013 introduced an Auto-save feature to automatically save the contents of the entity form. By default, auto-save is set to be triggered after every 30 seconds. This setting can be found in the MSCRM_CONFIG database using the below query.

select IntColumn from [dbo].[DeploymentProperties] where ColumnName=‘AutoSaveInterval’

Disabling the Auto-save feature

Auto-save feature can be disabled at an Organization level. To disable Auto-save,

Go to Settings -> Administration -> System Settings and set the Enable auto save on all forms to NO as in the image below

Disable Auto-save in CRM 2013

Disable Auto-save in CRM 2013

This disables the auto-save functionality across all the entities in the Organization.

In order to disable auto-save functionality only for specific entity based on the requirement, we can write the below Javascript function and call it on the OnSave event of that entity by passing the execution context to this function as an input parameter.

function preventAutoSave(execContext){
var eventArgs = execContext.getEventArgs();
if(eventArgs.getSaveMode() == 70) //save mode for auto-save = 70
        eventArgs.preventDefault();
}