We are facing an issue with UR13 while accessing Xrm.Page and child objects from a Silverlight application which is embedded on Html Page which gets opened on click of a ribbon button. Interesting, same scenario is working fine with UR11. Below is the piece of code which is working on UR11 version
dynamic win = HtmlPage.Window; dynamic opener = win.parent.opener; ScriptObject xrm = (ScriptObject)opener.GetProperty("Xrm"); ScriptObject page = (ScriptObject)xrm.GetProperty("Page"); crmPage = page; String Idtest = (String)crmPage.data.entity.getId(); |
Also, I have tried the same by directly using parent object like this but no help:
//Get the Xrm Object //Get the Current Record guid |
I have refer the below links but was not successful.
http://icircusmonkey.wordpress.com/2012/07/18/accessing-xrm-page-data-object-from-silverlight/
Do anybody have any ideas regarding this issue. Any help would be helpful.
Thanks in Advance!!!!