web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

XML problems with Dynamics 365 Online

(0) ShareShare
ReportReport
Posted on by

Hi everyone

This is the first time that I've worked with Dynamics & XML, so please forgive me if this is a stupid question!

I have created some XML using the FetchXML Builder tool in XRMToolBox as shown below:

<fetch top="50">
<entity name="contact">
<attribute name="serialnumber" alias="Serial" />
<attribute name="fullname" alias="Name" />
<attribute name="ownerid" alias="OwnerID" />
<filter />
<link-entity name="employment" from="sic_contactid" to="contactid" link-type="inner">
<attribute name="employernameorganisation" alias="Employer" />
<attribute name="employername" />
<filter>
<condition attribute="employernameorganisation" operator="not-null" />
</filter>
</link-entity>
<link-entity name="principalobjectaccess" from="objectid" to="contactid">
<attribute name="principalid" alias="Shared_with" />
</link-entity>
</entity>
</fetch>

Ultimately I want to parse the XML via Excel so that I can then link the Excel spreadsheet containing the data to a Power BI report.

However, the XML shown above obviously doesn't have any connection strings in it for our incidence of Dynamics, so Excel doesn't know where to pull the data from. How would I go about achieving this?

Many thanks
Jon

I have the same question (0)
  • Lucas H Profile Picture
    283 on at
    RE: XML problems with Dynamics 365 Online

    No stupid questions here!

    How are you applying the FetchXML to D365? Are you using Power Automate?

    Also, the FetchXML builder defaults to the top 50 records for the table you're querying - the "top: 50" property in your <fetch> tag. If you want ALL the records that fit your query you'll want to remove that.

  • JonClay Profile Picture
    on at
    RE: XML problems with Dynamics 365 Online

    Hi Lucas

    Sorry for the late reply, but I've been away and offline for a few days.

    What I wanted to do was pull the data required using the FetchXML, put it into Power BI and marry it up with some data pulled from D365 using Power BI. To be honest, I've never used Power Automate. Would that be the best solution?

    Many thanks

    Jon

  • Lucas H Profile Picture
    283 on at
    RE: XML problems with Dynamics 365 Online

    I'm not very familiar with Power BI but to get the data from D365 to Excel I would definitely use Power Automate.

    Use the List Rows Dataverse action and enter your FetchXML as a filter. Then use the Create Tabel Excel action which will add a table to a spreadsheet that you specify. You can then use Add A Row To A Table action for each row from your List Rows action to populate it.

    From there, you can have Power BI pull information from the spreadsheet.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 235

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 175

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 156 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans