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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / XML document with name...
Power Automate
Unanswered

XML document with namespaces processing

(0) ShareShare
ReportReport
Posted on by 88

Hello everyone,

 

I have a document with namespaces which I need to process, when I try to use Power Automate Desktop with that it errors but when I try the query in online builder everything works.

 
So I have a flow in Microsoft Power Automate Desktop because I need to parse body of the email and press link in email body to download a XML document (incoming invoice) and for that purpose I did not publish any information about that.
I have managed to do that with parse text action where I have built regex to extract information but I want to know how to work with this kind of documents.
 
This is part of the XML document which I want to process, do you know what kind of XPATH query do I need to build to let's say get data from element ext:ExtensionAgencyName.
<?xml version="1.0" encoding="utf-8"?>
<OutgoingInvoicesData xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    <Header>
        <SupplierID>987654321</SupplierID>
        <InvoiceType>1</InvoiceType>
    </Header>
    <OutgoingInvoice>
        <SupplierInvoiceID>12345678-202011-3</SupplierInvoiceID>
        <BuyerID>12345678910</BuyerID>
        <ElectronicID>1234567</ElectronicID>
        <InvoiceEnvelope>
            <Invoice xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
                xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
                xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
                xmlns:sig="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2"
                xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 HRInvoice.xsd"
                xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
                <ext:UBLExtensions>
                    <ext:UBLExtension>
                        <cbc:ID>HRINVOICE1</cbc:ID>
                        <cbc:Name>InvoiceIssuePlaceData</cbc:Name>
                        <ext:ExtensionAgencyID>TESTING</ext:ExtensionAgencyID>
                        <ext:ExtensionAgencyName>TESTING</ext:ExtensionAgencyName>
                        <ext:ExtensionAgencyURI>TESTING</ext:ExtensionAgencyURI>
                        <ext:ExtensionURI>urn:invoice:hr:issueplace</ext:ExtensionURI>
                        <ext:ExtensionReasonCode>MandatoryField</ext:ExtensionReasonCode>
                        <ext:ExtensionReason>Mjesto izdavanja računa prema Pravilniku o PDV-u</ext:ExtensionReason>
                        <ext:ExtensionContent>
                            <ext:InvoiceIssuePlace>Zagreb</ext:InvoiceIssuePlace>
                        </ext:ExtensionContent>
                    </ext:UBLExtension>
                    <ext:UBLExtension>
                        <cbc:ID>HRINVOICE1</cbc:ID>
                        <cbc:Name>InvoiceIssuerData</cbc:Name>
                        <ext:ExtensionAgencyID>TEST USER</ext:ExtensionAgencyID>
                        <ext:ExtensionAgencyName>TEST USER</ext:ExtensionAgencyName>
                        <ext:ExtensionAgencyURI>TEST USER</ext:ExtensionAgencyURI>
                        <ext:ExtensionURI>urn:invoice:hr:issuer</ext:ExtensionURI>
                        <ext:ExtensionReasonCode>MandatoryField</ext:ExtensionReasonCode>
                        <ext:ExtensionReason>Podaci o izdavatelju prema Zakonu o trgovačkim društvima</ext:ExtensionReason>
                        <ext:ExtensionContent>
 
Cheers,
Dino
Categories:
I have the same question (0)
  • Brad_Groux Profile Picture
    4,556 on at

    If you could provide an expanded screenshot of your Flow and steps, your Flow run history, and of any detailed error messages you're receiving we could likely better assist you. Also, for the best results, you may want to review How to write a good forum post.

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE. Want to know more? Follow @BradGroux on Twitter, and check out my Medium blog at https://msft.engineer.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard