Skip to main content

Notifications

Community site session details

Community site session details

Session Id : zVlt+29Cgyglz7G3qCSAHV
Power Automate - Power Automate Desktop
Unanswered

Save excel as xml data

Like (0) ShareShare
ReportReport
Posted on 21 Dec 2021 07:10:30 by 16

Hello! 

I'm trying to save a excel sheet as a XML data document with "Save excel" activity.

If "XML data" is selected it requires a XML map input - question: what type of data needs to be the input for this item?

As far as I know XML map is a .xsd document.

 

The above steps is my work around for bulk import excel data into SQL.

Any suggestions are welcome.

Thanks!

  • MichaelAnnis Profile Picture
    5,721 Super User 2025 Season 1 on 22 Dec 2021 at 20:58:16
    Re: Save excel as xml data

    I have never created an XML Map.  You will have to read this documentation:

     

    https://www.brainbell.com/excel/xml-export.html

     

    Best of luck!

  • bogdanf Profile Picture
    16 on 22 Dec 2021 at 17:37:53
    Re: Save excel as xml data

    of course, it's a nice work around - but is my second choice. 

    as I replied to @MichaelAnnis, my question remains about the nature of XML map: argument in Save Excel activity when Document format: XML Data.

     

    Thanks! 

  • bogdanf Profile Picture
    16 on 22 Dec 2021 at 17:35:24
    Re: Save excel as xml data

    yeah, you can also choose XML Data

    my questions remains: what type of value / argument XML maps accepts for Save Excel activity? is it a string containing .xsd file?

    bogdanf_0-1640194512802.png

     

    Many thanks!

  • MichaelAnnis Profile Picture
    5,721 Super User 2025 Season 1 on 21 Dec 2021 at 14:22:04
    Re: Save excel as xml data

    So, I can get it to save as test.xml using the 'Save Excel As' action:

    MichaelAnnis_1-1640096473511.png

     

    But I don't even know if that is importable to anything.

     

    I found an article that addresses your topic; there may be more work to do:
    https://www.brainbell.com/excel/xml-export.html

     

    Best of luck!

  • Karlis Profile Picture
    23 on 21 Dec 2021 at 13:40:48
    Re: Save excel as xml data

    Hi Bogdanf

    I do not think there is an option to save an excel file directly as XML because you have to have a very specific format structure.

    It is possible to set up a text variable and then keep appending lines to it in the format you would like your .xml files to be and then use the action to save this text variable as an XML document (a .xml extension is normally used - .xsd is a certain schema of an .xml document).

     

    I do not fully understand what your excel input looks like and what output you wish to achieve but I would read the data from the excel document and set the variables in a specific text format that fits with .xml requirements.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 4 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 2

#2
stampcoin Profile Picture

stampcoin 2

Overall leaderboard
Loading started