How to pass current entity Id to my Silverlight webresource?

I have a silverlight webresource in my CRM 2015 online, that I open using a javascript webresource. This web resource is through a ribbon button of the Opportunity entity. I need to pass the current opened opportunity to the silverlight web resource. I’ve managed to get the OpportunityId but still I can’t pass it to the Silverlight web resource.

My javascript webresource code:

function OpenSilverLightControl()
 {
     var Id=Xrm.Page.data.entity.getId();

    window.open('https://crm.mycrm.com//WebResources/new_/MyCRMQuoteTestPage.html',null,500,600);
 }


Source: javascript

Leave a Reply