How to pass Entity GUID and Entity Type to Custom Applications hosted in IFRAME

Passing Entity Unique identifier (GUID) and Entity Type to Custom application hosted in IFRAME is a two step process.  

  1. Open the IFRAME properties window and click checkbox named: Pass record object type and unique identifier as parameters.

 pic1.GIF

2.      Now you need to specify in your custom application variable for both. For Entity Type use ObjectTypeCode (Gets the integer code of the entity that the form is displaying (1 = Account, 2 = Contact, and so on). And for Entity unique identifier use ObjectId (Gets the entity GUID that the form is displaying. This property returns null if the form is in Create mode). Both these variable are now accessible to your custom application through query string parameters.

2 Responses

  1. I was looking for the clue towards objecttypecode. thanks

  2. Do you know if it is possible to pass the entity GUID to a CRM custom entity that is hosted in a IFrame? Specifically, I have created a custom entity that I want to host in an IFrame on a tab in the Contact entity. Can I pass the contact GUID to the custom entity in the IFrame, and if so, how can the custom entity gain access to the contact GUID?

    Thanks,
    Chris

Leave a Reply