Because ALL Option Set values are stored in this table you need to determine which ones relate to your data. This is not always easy but the following query can be helpful.
select a.AttributeName AS OptionSet, b.Name AS ObjectName, a.ObjectTypeCodefrom StringMapBase ainner join MetadataSchema.Entity b on a.ObjectTypeCode = b.ObjectTypeCodeWhat this query does is join the Option Sets to the Entity table and shows the name of the CRM Entity that the Option Set relates to.
Save that query to a view and you can easily find option values for whatever reports you need them for. When you find the right option set create a view in your reporting database to encapsulate those values for reference purposes.
No comments:
Post a Comment