Hello All,
Is there anyway i could use in C#.Net code to figure out what is the entitytype of the Cutomer field.
Hi,
Use below code to get entitType of customer field.
// late bound
if (entity.Contains("customerid") && entity["customerid"] != null) {
EntityReference customer = (EntityReference)entity["customerid"];
Console.WriteLine("The customer type of this lead is " + customer.LogicalName);
}
See below article for more info.
www.crmanswers.net/.../dynamics-crm-special-data-types.html
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Eugen Podkorytov
106
Muhammad Shahzad Sh...
106
Most Valuable Professional