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 :

Refresh CRM form from third-party applications

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

http://support.microsoft.com/default.aspx/kb/821669

Code to put in the javascript of our custom page

function window.onunload()
{
window.opener.location.reload();
window.close();
}

But the thing with the code is that it only works when we deploy the page in the same server where our Crm is deployed.

When i had deployed the page in my machine, the page wasn’t refreshing but when i deployed the same page where the crm is deployed everything was working perfectly fine.

I think in the previous case because of the cross-domain issue i guess there were problems.

One more thing,  to assign values to attributes in our Crm Form from our isv page we can make use of familiar syntax

window.opener.document.crmForm.all.new_totalbilling.DataValue=parseInt(//value );

parseInt – if the crm attribute is of numeric type

alert(window.parent.document.all.crmForm.all.name.DataValue);

Bye



This was originally posted here.

Comments

*This post is locked for comments