Posts Tagged ‘late binding’

Check Entities attribute type – CRM Late Binding

September 2, 2014 Leave a comment

Recently somebody posted a question in my blog, whether there is a way to determine the entities ‘Attribute Type’ instead of making Organization service call and read the metadata. 

Assume you have a Plug-in you made a ‘Retrieve’ call using Late Binding and, you got Entity object. 

Below is easy way to determine type of each attribute using ‘is’ operator.

Entity.Attributes[attributeName] is EntityReference


Entity.Attributes[attributeName] is Money


Entity.Attributes[attributeName] is OptionSetValue


Categories: CRM Tags: , ,