Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Fetch XML query

Posted on by 105

Hi. 

Can anyone help me write a fetch xml query?

I have to create a SSRS report where I will display information grouped by customers for all services.

So each customer has an order. In that order I have services he uses.

So I have to group the customers and list all services he uses with from-to date, contract duration, the total amounts, total costs, etc.

I dont know how to implement this in fetch xml. 

  • sjov Profile Picture
    sjov 105 on at
    RE: Fetch XML query

    I did a workaround. Populating temp table using flow and using fetch xml for the temp table to retrieve the values i needed.

  • Suggested answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Fetch XML query

    Hello sjov,

    Pls refer below link,

    https://www.crmjetty.com/blog/how-to-create-and-save-fetchxmlquery-from-dynamics-365/

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365.

  • sjov Profile Picture
    sjov 105 on at
    RE: Fetch XML query

    Hi, yes i know how to use the xrm toolbox but i dont know how to mix aggregate with non aggregate attributes i one query. That is why im asking

  • onurizgi Profile Picture
    onurizgi 360 on at
    RE: Fetch XML query

    Hi Sjov,

    Can you try FetchXMLBuilder tool from XRMToolBox. I think so this solution helps to you. If you dont know how to use FetchXMLBuilder tool, you must follow this link :

    www.youtube.com/watch

    I hope it helps to you.

    Regards.

  • sjov Profile Picture
    sjov 105 on at
    RE: Fetch XML query

    The sql query would be:

    Select productname, todate, fromdate.. From summary

    Join orders where id=id

    Group by name

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans