In CRM 4.0 it was possible to display originating lead notes on the opportunity entity using the following code.
var lookupItem = new Array;
lookupItem = crmForm.originatingleadid.DataValue;
if (lookupItem != null)
{
crmForm.all.IFRAME_LeadNotes.src=”/_controls/notes/notesdata.aspx?id=”+ lookupItem[0].id + “&ParentEntity=3&EnableInlineEdit=false&EnableInsert=false”;
}
else
{
crmForm.all.IFRAME_LeadNotes.src=”about:blank”;
}
This of course will not work in CRM 2011. Does anyone know what the new jscript would be?
Thanks,
JC