retrieve attribute information RRS feed

  • Question

  • Hi all,

     I want to retrieve the list of attributes in a specific view for example : (Active Contacts ) how can I do that via C# code ?

    Thank you.

    Monday, April 16, 2012 12:02 PM


  • To do this you'll need to retrieve an instance of the savedquery (if it's a system view), or userquery (if it's a personal view). The easiest way to do this is via a QueryExpression, with a condition expression on the name, and the returnedtypecode of the view.

    The attributes displayed in the view will be within the Xml in one or more of the FetchXml, LayoutXml or ColumnSetXml attributes. Unfortunately, not all views have data in each of these attributes, so you may have to check them in turn


    Microsoft CRM MVP - http://mscrmuk.blogspot.com/  http://www.excitation.co.uk

    Monday, April 16, 2012 12:54 PM