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)

unsaved changes

(0) ShareShare
ReportReport
Posted on by

I have a entity like service request in that i have child service request is there am able to create that child service request, But when I am open that child request in that page below i got unsaved changes, after some time it will be automatically saving. But i need when am open the page in that time only it will save i don't want these unsaved changes can anyone help me  

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Once you create the child service request or quick create service request, when you view the record, timer is paused, because there are some unsaved changes, once we save the form timer is starting, this is only for child service requests

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Dinesh,

    The issue you are facing might be due to-

    1. Some JavaScript is setting the field value on ‘onLoad’ event of form.

    2. Some Business Rule is setting the field value.

    3. Some field/fields are locked on form and populating through script.

    You can check your javaScripts , business Rules or any read only field on form.

    I think this might help you-

    mscrm16tech.com/.../unsaved-changes-message-after-saving-the-record-in-crm  

  • Verified answer
    Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    Hi, you can check what are dirty attributes using this script:

    javascript:(function(){var frameXrm = frames[0].Xrm.Page.ui!=null? frames[0] : frames[1];var getXrm=frameXrm .Xrm;if(getXrm!=null){var Xrm=getXrm;}var attributes=Xrm.Page.data.entity.attributes.get();var listDirty="Dirty Attributes: ";var listAlways="Submit Always: ";var listNever="Submit Never: ";for(var i in attributes){var attribute=attributes[i];if(attribute.getIsDirty()){listDirty+=attribute.getName()+", ";}if(attribute.getSubmitMode()=="always"){listAlways+=attribute.getName()+", ";}else if(attribute.getSubmitMode()=="never"){listNever+=attribute.getName()+", ";}}prompt("Dirty Attributes : ",listDirty+"; "+listAlways+"; "+listNever);}());

    You just need to create favorite link, and then change the url into those script. 

    5282.Capture1.PNG

    Then in your crm form, when you see unsaved changes. Just click the link and you will see what are the dirty attributes.

    5282.Capture1.PNG

    After know which attributes that is in the state dirty, you can check on your customization which one changes it. Usually it's on the plugin. When you save and plugin trigger and change value, it will trigger on change event for that attribute that changed.

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