title: how to get (ScriptObject)HtmlPage.Window.GetProperty(“Xrm”) in Silverlight Application when it embedded to HTML Page in CRM
body: <p>I fetch the Guid of Record using below code in Silverlight Application in CRM.</p>
  
  <pre><code> dynamic xrmnew = (ScriptObject)HtmlPage.Window.GetProperty("Xrm");
   Guid Id1 = new Guid(xrmnew.Page.data.entity.getId());
   textBox2.Text = Id1.ToString();
  </code></pre>
  
  <p>Thats fine i got the Guid of Record from Silverlight Application using above code.But if i deploy this Silverlight Page in HTML Page and then try to get Guid of Record using above code then it doesnt able to fetch the Guid.</p>