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)

problem in autosave

(0) ShareShare
ReportReport
Posted on by 2,654

hi,

I have some issue with autosave.

I have disabled autosave in crm in organization level. I have a option set field. But autosave is still firing and saving the form for one of the option out of 5 option.

Please suggest any solution... I s there any workflow or business rule for which I am facing this problem.

*This post is locked for comments

I have the same question (0)
  • Rasmus R. Aardal Profile Picture
    on at

    Hello ayush kar,

    Are you running any JavaScript or workflow with one of the option set options as a criteria?

    Let me do a practical example; You have an option set named "Cars" with the options "Ford", "BMW" and "Audi". Is there a workflow or script that triggers for instance if the value of the Cars option set is "BMW"?

    Is this a standard option set? If so, can you supply me with the name of the option set so I can do some testing on my end?

    Regards,

    Rasmus

  • ayush kar Profile Picture
    2,654 on at

    yes some business rule and workflow is there for that particular option

  • Rasmus R. Aardal Profile Picture
    on at

    Hello ayush kar,

    If disabling any workflow / business rule that triggers on this option is out of the question, the only suggestion I have is to try an add the following script to the OnSave-event of the form that contains your option set:

    function DisableAutoSave(context)

    {

       var onSaveEvent = context.getEventArgs();

       if(onSaveEvent.getSaveMode() == 70)

       {

           onSaveEvent.preventDefault();

       }

    }

    Make sure you enable "Pass execution context as the first parameter" for the function.

    This then triggers when CRM attempts to save the form, and attempts to stop the autosave. I have not tested this in your specific scenario, but you could give it a go and see if it works.

    Good luck!

    Regards,

    Rasmus

  • Suggested answer
    Alessandro Graps Profile Picture
    2,664 on at

    Hi,

    this link maybe can help you:

    msdynamicscrmblog.wordpress.com/.../disable-auto-save-functionality-in-dynamics-crm-2013

    thanks

    Alessandro

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