Home > CRM Development > How to pass Entity GUID and Entity Type to Custom Applications hosted in IFRAME

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.

Advertisements
  1. Tim
    October 16, 2007 at 3:05 pm

    I was looking for the clue towards objecttypecode. thanks

  2. Chris
    November 16, 2007 at 4:26 pm

    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

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: