Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Getting Notification When Assigning record to myself in case entity

Posted on by 545

Hi All, 

       After creating a case record i am trying to assign it to myself, which throws following notification "Unsaved Changes", i am unable to find the route cause for the issue. 

Assign-Issue.PNG

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Getting Notification When Assigning record to myself in case entity

    Hi Ganesh,

    This error is coming when you are changing some field value in client side and forms become dirty and unable to redirect to update form until and unless you saved the data. You can check with  below code to get the field name if you are not aware about which fields are changed but not  saved.

    //get list of dirty fields
    var entAttributes = Xrm.Page.data.entity.attributes.get();
     
    if (entAttributes != null) {
        for (var i in entAttributes) {
            if (entAttributes[i].getIsDirty()) {
                listofDirtyAttri += entAttributes[i].getName() + "\n";            
            }
            alert(listofDirtyAttri);
        }
    }

    When you are changing field from client side make sure you did setsubmit mode = always.

    Xrm.Page.getAttribute("FieldName").setSubmitMode("always")


    Once you change the field don't forget to call -

    Xrm.Page.data.save()
    

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans