Hi,
I am trying to display the originating lead notes in the opportunity screen using the following coding however i get an form onload error? We updated from crm 4.0 to crm 2013
function leadNotes()
(
)
function Form_onload()
{
var Primary = Xrm.Page.data.entity.attributes.get("originatingleadid");
var IFrame = Xrm.Page.ui.controls.get("IFRAME_LeadNotes");
if (Primary.getValue() != null) {
var GUIDvalue = Primary.getValue()[0].id;
IFrame.setSrc("/_controls/notes/notesdata.aspx?id="+ GUIDvalue + " &ParentEntity=3&EnableInlineEdit=false&EnableInsert=false");
}
else
{
IFrame.setSrc("about:blank");
}
}