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] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)
![[Step by Step] Configure and run 'Pipelines in Power Platform'](https://rajeevpentyala.com/wp-content/uploads/2024/08/image.png)
Leave a comment