I'm trying to find metadata about the length of fields in MS Dynamics CRM 4.0 - does anyone know if/where this information is available from the metadata services? I tried looking on the AttributeMetadata class, but can't find anything there. Yet, the field length does show up in MS's metadata browser, so it must be accessible somehow.
+2
A:
If you know the attribute is a string or ntext attribute, you can cast the AttributeMetadata object over to a StringAttributeMetadata object, and that will have the maximum length of those fields.
Matt
2009-07-27 19:07:53
That's fantastic - thanks!
Badjer
2009-07-27 21:26:27