Saturday, December 4, 2010

Refresh the Notes Section

A recent CRM Development forum inquiry lead me to probe the DOM of an entity page to discover a simple way to refresh only the Notes area of that form.  The following two line script simply reloads the Iframe containing the notes, which can be helpful in situations where the notes have been changed through some ancillary mechanism, but you don’t want to reload the entire form to view the changes.

var notesFrame = document.getElementById("notescontrol");
notesFrame.src = notesFrame.src;

1 comment:

  1. Thanks! It does work with CRM 2011 too.

    Anyway, it's a shame Crm2011 doesn't come with a native refresh method for the notes section even when Xrm.Page.getControl("notescontrol") does retrieve the control.



Unrelated comments to posts may be summarily disposed at the author's discretion.