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
🙂


![[Step by Step] Configure and consume 'Environment Variables' of type 'Secret' using 'Azure Key vault'](https://rajeevpentyala.com/wp-content/uploads/2023/05/image.png)
Leave a comment