Check Entities attribute type – CRM Late Binding
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
Or
Entity.Attributes[attributeName] is Money
Or
Entity.Attributes[attributeName] is OptionSetValue
🙂
Categories: CRM
attribute type, CRM, late binding
Comments (0)
Trackbacks (0)
Leave a comment
Trackback