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)

Xrm.Page.data.save keeps refreshing the page?

(0) ShareShare
ReportReport
Posted on by

Hello,

I used this on the Order form in the ONSAVE and/or ON PAGE LOAD section of the Form JavaScript. However, I keep finding the form keeps resaving over and over.

I used this Xrm.Page.data.save() and Xrm.Page.data.save().then(thenSuccessFunction, thenErrorFunction); and even the Xrm.Page.data.refresh()

The function is NOT in a loop statement, so not sure why it would constantly keep doing that.

Thoughts anyone?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Siraj M Profile Picture
    on at

    Check whether auto save is causing the issue

    Refer manage-auto-save for details

    Regards,

    Siraj

  • Community Member Profile Picture
    on at

    thats not it, its already off.

  • Verified answer
    ScottDurow Profile Picture
    21 on at

    I suspect that the reason is that calling save in the onsave event is the causing the onsave event to refire again.

    Try putting a window level boolean flag to prevent the save from calling the save event again.

  • Verified answer
    Alagunellaikumar Profile Picture
    6,212 on at

    Did you put Xrm.Page.data.save() in the page load, if it is then please remove it and check it?

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