Text Scroll

You must welcome, Thank you for visiting my blog.

Search This Blog

Monday, July 6, 2020

Refresh a CRM from / Page

//call onChnage of Modified On field

function RefreshForm()
{
 try{
setTimeout(function () { 
    // Call the Open Entity Form method and pass through the current entity name and ID to force CRM to reload the record
Xrm.Utility.openEntityForm(Xrm.Page.data.entity.getEntityName(), Xrm.Page.data.entity.getId()); 
}, 1000);   //replace 1000 as per ur chioce 1000 for 1sec, 2000 for 2sc etc etc 
  }
  catch(err)
   {
alert(err.message);
   }
}

No comments:

Post a Comment