locked
How do I get all attributes on a particular form only? RRS feed

  • Question

  • Hi all, I really need some assistance; I need to connect to CRM Online and get the attributes that are on each form of the Account entity, including custom entities. I know that in the CRM org DB there is a table called SystemForm, and in that is a column called FormXML. The problem I am having is that when I run a query for the Account entity; it only returns 2 forms of type 2; so none of my custom forms. 

    So;

    1. How do I return my custom form? 

    2. Once I have my custom formXML loaded, lets say I am able to parse the XML, how do I get the metadata for that attribute? For instance I have an optionset in my custom account form, how do I get the values and names for that attribute?

    Any assistance greatly appreciated.

    Monday, September 14, 2015 6:51 AM

All replies

  • 1. Your easiest option is probably to create a solution with just the account entity in it, and export the solution. The customizations.xml file will contain all the form xml

    2. You could also get these from an exported solution, and parsing the xml, or you could use the metadata generator in XrmToolbox


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

    Tuesday, September 15, 2015 8:38 PM
    Moderator
  • How do you want to accomplish this?

    1. With Javascript (you could use some sort of code to get the DOM objects)?
    2. With Webservice?

    Thanks, OF


    My blog: http://ptbiztalker.blogspot.pt/ Please marked as answer if this post answers your question.

    Wednesday, September 16, 2015 9:06 PM