Answered by:
CRM 2011 fetch XML query

Question
-
How can get the xml string of a query in crm 2011?
SharePoint Expert
Monday, August 12, 2013 5:41 AM
Answers
-
Hi ,
http://mileyja.blogspot.com.au/2011/07/convert-queryexpression-to-fetchxml.html
Might help.
Daniel
- Proposed as answer by IndlaD(hotmail) Tuesday, August 13, 2013 7:42 AM
- Marked as answer by Mahdi Kheirmandi Wednesday, August 14, 2013 11:21 AM
Tuesday, August 13, 2013 7:42 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.
Thanks!
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 -
Hi ,
http://mileyja.blogspot.com.au/2011/07/convert-queryexpression-to-fetchxml.html
Might help.
Daniel
- Proposed as answer by IndlaD(hotmail) Tuesday, August 13, 2013 7:42 AM
- Marked as answer by Mahdi Kheirmandi Wednesday, August 14, 2013 11:21 AM
Tuesday, August 13, 2013 7:42 AM -
Hello Mahdi Kheirmandi
Just follow the process to generate xml ready made xml query.
- Go on entity on which you want to create Xml query.
- Click on Advance Find button on the ribbon button(Right side in top pane).
- Add criteria to for query.
- Click on download fetch xml button.
- Xml file will be generated.
- 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.
- Edited by Prashant Wani Tuesday, August 13, 2013 11:32 AM
Tuesday, August 13, 2013 11:24 AM -
Hi,
Best answer.
Best regards.
SharePoint Expert
- Edited by Mahdi Kheirmandi Wednesday, August 14, 2013 11:23 AM
Wednesday, August 14, 2013 11:23 AM