// Get the "Name" field value from the entity object string name = entity.GetField("Name").GetStringValue();
// Get the "Age" field value from the entity object int age = entity.GetField("Age").GetIntValue();This example demonstrates how to retrieve the value of a field named "Age" from the entity object using the GetField method. The returned value is then cast to an integer using the GetIntValue method. The System Entity GetField method is part of the Microsoft Dynamics CRM SDK package library.