Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Your changes have not been saved.....

Posted on by 2,645

Hello,

I am wondering if there is a mass way to save all active records for a certain entity all at once instead of having to go into each record and save it manually.  The reason this is happening is because I made a script change to a field.  This field already had data in it, so now it is asking for me to resave the record because of the script change.  I hope there is a mass update save that I can do some how.  Any help is appreciated.

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Your changes have not been saved.....

    Not sure how you are updating mass or changing fields using JavaScript ?

    Doing field change is only set the value in client side DOM element , so until and unless you save the record its obvious you will get the error "Your changes have not been saved....." . This is by design like when you want to close any file without save.

    So if you really need to update bulk you can use Bulk update functionality , import data or may be using workflow .

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Your changes have not been saved.....

    Hi,

    why dont you create an on demand workflow, and run in bulk

  • Suggested answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Your changes have not been saved.....

    Scripts are triggered from the form. which means, you have to be on one form for the scripts to trigger.

    In your case, seems that you are changing field values on load of a form. Is that right?

    If yes, change the on-load event to an on-save event. Else, users are going to have a bad experience, wherein, just by opening a form, there are some changes.

    Secondly, if your script can meant to do some data cleansing, do it from a bulk update / export import.

    Thirdly, if you want to edit the field for multiple records, you can have a workflow which can be run on-demand / use the multi-edit feature which is OOB.

  • Suggested answer
    Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Your changes have not been saved.....

    Scripts don't change anything until the form is loaded, so there's no way to bulk update from a script.

    you would either need to use just the out of the box bulk update (just select multiple records and click "edit"), or create a workflow to do the work of the script and then select the records to update on.

    Alternately, you could make your script save the record explicitly if it makes a change, preventing the issue while retaining the script.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans