Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

do you want to save changes pop up coming unnecessarly

Posted on by

Hi Team,


we are getting "do you want to save changes" when opening a record from custom page(designed similar to advanced search).
This is occurring because we are navigating forms in javascript based on some condition.I have checked any dirty fields on the form but not any. There is only one business rule for that entity(contact) and all the roles have read privilege on that entity.

Please note that this is occurring only for specific roles. Please help

5238.Capture.JPG

*This post is locked for comments

  • Suggested answer
    Goutham A Profile Picture
    Goutham A on at
    RE: do you want to save changes pop up coming unnecessarly

    I have found the root cause. this is not because of business rule. There is a readonly boolean field in a quick form  which is getting dirty.

    This is happening because it has false value but crm is comparing null(because its read only locked) to false and returning isdirty .Removing it as readonly solved the issue.

  • Karuna Karan Profile Picture
    Karuna Karan 1,210 on at
    RE: do you want to save changes pop up coming unnecessarly

    Usually the error goes off after disabling the Biz Rule, did you save and publish and refresh the page? Is there any other scripts running in that form? Is there any Field Security configured for any of the entity field?

  • Goutham A Profile Picture
    Goutham A on at
    RE: do you want to save changes pop up coming unnecessarly

    This is occurring even after disabling all business rules. Can you please help

  • Goutham A Profile Picture
    Goutham A on at
    RE: do you want to save changes pop up coming unnecessarly

    I have disabled al business rule but the same issue occurred. Can you please suggest

  • Karuna Karan Profile Picture
    Karuna Karan 1,210 on at
    RE: do you want to save changes pop up coming unnecessarly

    I have faced a similar issue in the past, and isolated the issue was caused by business rules running under the entity. As soon as I disable the Biz rules the form  not saved error vanished.

    You can take 2 approach here to see if it provides a solution.

    1. Split the biz rule into 2 for each condition and check

    2. Use a different condition. e.g. If firstname and lastname contains data then lock etc..

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: do you want to save changes pop up coming unnecessarly

    Hi Goutham,

      I think I saw something similar and, in my case, I had those links formed incorrectly (I don't remember right now what it was.. either formid was missing or something else). Anyway, it's probably worth trying: did you check if the links you are using are identical to the links which are provided by CRM (through email a link option, for example)?

      If the same user who is having this problem tries two different links: one from "email a link" and another one from your javascript, will they see this problem in both cases?

  • Goutham A Profile Picture
    Goutham A on at
    RE: do you want to save changes pop up coming unnecessarly

    every role has append, appendto also in contact. Please help

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans