Thursday, September 10, 2009

Lookup Field properties

Hi,
here is the properties for lookup field in JS side

var parentIncident= new Array;
parentIncident = null;

parentIncident = crmForm.all.parentincident.DataValue;

if (parentIncident[0] != null)
{
//description
var desc = parentIncident[0].name;

//Guid
var incidentId = parentIncident[0].id;

// Object Type
var type = parentIncident[0].typename;

}

Enjoy,
Rami Heleg