Show navigation bar item in IFrame in Microsoft CRM
a) IFrame :
"Settings" -> "Customizations" -> "Customize Entities" after this steps in CRM, we find the Contact card and we open this card. We select the "Forms and Views" in navigation bar at left and we clicked the Form.
Where you want place the your activities screen you select the interested tab and click the "Add IFrame" button. A window will be opened;
- set the Name "HistoryFrame",
- set the URL "about:blank",
- we select the "Pass record object-type code and unique identifier as parameters",
- we unselect the "Restrict cross-frame scripting"
The first step will be completed when we press the ok. Let the show second step;
We click the "Form Properties" in same screen. We click the "OnLoad" on opened window. We replace the code that below. We click the buttons "ok" and "Save Form and Close".
if (crmForm.ObjectId != null)
var oId = crmForm.ObjectId;
var oType = crmForm.ObjectTypeCode;
var security = crmFormSubmit.crmFormSubmitSecurity.value;
return "areas.aspx?oId=" + oId + "&oType=" + oType + "&security=" + security + "&tabSet=" + tabSet;
crmForm.all.IFRAME_HistoryFrame.src = GetFrameSource("areaActivityHistory");
We click to "Publish" that in the "actions" menu. We will see the activity history of contact when we open a contact card.
I hope it will done. Regards.