Tuesday, 30 June 2015

The difference: Xrm.Page.data.refresh() vs Xrm.Utility.openEntityForm(entityName, id) in Practice

Brief post here, Assuming, in the ribbon, I have successCallback function that will refresh the form.
Then, in the form onLoad I have script to show Form Notification.

Now, I want to research the difference of those function usages.


Now, In the Submit Button SuccessCallback() I have specified one is using .refresh() and another one is using the .openEntityForm()


What happened after I put it in the code?


It is just refreshing the Form like a modal popup async and it is fast!


But..It does not trigger my notification onLoad(), it did not reload the whole form.

Now, the second research:



Well, it is really refreshing and reloading your form, like you were opening a new window of entity record.


And here is the result after it comes back.


*My Notification which i put in the formLoad is appearing, different from the first function result I used before.

Hope this can make you clear which function you’d like to use!

As I know, both are also refreshing the ribbon without additional ribbon refresh function based on my research.

*additional one on 19 October 2015
the Xrm.Page.data.refresh() function will not refresh the whole thing, so you might find that the footer is not updated like this:



  1. Great post, it's good to know the options when refreshing in Javascript

    keep up the great blog posts

  2. Really helpful. Thanks for the research.

  3. It also does not refresh the Business Process Flow (in CRM 2016 Online). Any ideas?

  4. Add a modifiedon attribute and attach your onload event to that

  5. This comment has been removed by a blog administrator.

  6. Sometime few educational blogs become very helpful while getting relevant and new information related to your targeted area. As I found this blog and appreciate the information delivered to my database.

  7. Amazing Artice Written. I am very much glad to read your article.
    I am Following Your From Last 6 Month- Brother and really linking the stuff
    you post on your blog on Regular Basis.
    Keep Posting blogs like this….. Thanks alot

    WhatsApp API Integration

  8. amzing article , really i like this blog we also provide service like this Integrate WhatsApp with Tally

  9. This is really a very good article. Thanks for taking the time to discuss with us, I feel happy about learning this topic. keep sharing your information regularly for my future reference. if you look out this our WhatsApp API Services. if any thing you need then please visit us https://umstechlabs.com/whatsapp-api-integration

  10. Amazing post... It's helpfull...Thanks alot!!!!
    Creative Graphic Design


My Name is..