CRM 2011 fetch XML query RRS feed

  • Question

  • How can get the xml string of a query in crm 2011?

    SharePoint Expert

    Monday, August 12, 2013 5:41 AM


All replies

  • Hi Mahdi,

    Are you asking about XML string for Saved Query?

    Will you please elaborate more on this? If you want to construct the query, You can use advance find for this and download the Fetchxml.


    Kalim khan

    If this post helps you, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, August 12, 2013 7:41 AM
  • Hi Kalim,

    I want create a query using QueryExpression in c# and get the XML string of it, how can I do?

    SharePoint Expert

    Tuesday, August 13, 2013 3:37 AM
  • Tuesday, August 13, 2013 7:42 AM

  • Hello Mahdi Kheirmandi

    Just follow the process to generate xml ready made xml query.

    1. Go on entity on which you want to create Xml query.
    2. Click on Advance Find button on the ribbon button(Right side in top pane).
    3. Add criteria to for query.
    4. Click on download fetch xml button.
    5. Xml file will be generated.
    6. in following scenario I'm generating fetch xml string for Monthly Budget entity.

    For Example follow the snapshot.


    Mark as a answer if you find this post helpful.

    Tuesday, August 13, 2013 11:24 AM
  • Hi,

    Best answer.

    Best regards.

    SharePoint Expert

    Wednesday, August 14, 2013 11:23 AM