Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

onload event not firing after save

Posted on by 1,037

usually the onload event fires after save. after 2013 they modified the behaviour is there a workaround to have the same behaviour as 2011 in dynamics 365 ?

*This post is locked for comments

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: onload event not firing after save

    Hi,

    Please check the following msdn article:

    msdn.microsoft.com/.../dn481607.aspx

    You have two options to do this:

    Xrm.Page.data.refresh(save).then(successCallback, errorCallback);

    or

    Xrm.Page.data.save(saveOptions).then(successCallback, errorCallback)

    // In this case you can call the refresh of the page in the success callback.

    If this option does not work for you, you will need to add a polling loop using setTimeout that stops when the Id of the records is set.

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