Hi Everyone,
We are facing a below described issue in HTML Webresource in MS CRM Online instance.
Requirement
We have placed a ribbon in in Opportunity record. On click of Ribbon, a HTML webpage has to populate all active related Marketing Lists.
Issue
In HTML Webresource we are unable to capture the GUID of opportunity by using Javascript in HTML Control. We have referred "ClientGlobalContext.js.aspx" in source code level and able to retrive the Server URL, but not the GUID of the Opportunity record.
Ways we tried
We have tried with "parent.Xrm.Page.data.entity.getId();" to get the Oppotunity GUID, but parent.Xrm.Page is coming as null.
We have tried to get the context parameter to capture the Opportunity GUID by refering "ClientGlobalContext.js.aspx" file. still no luck.
Can any one suggest me how to capture the GUID of opportunity record in HTML webresource and we dont want to place it in the Opportunity form?
Regards,