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 / Read XML document in t...
Power Automate
Unanswered

Read XML document in the email message, parse xml and create list item in SharePoint List

(0) ShareShare
ReportReport
Posted on by 15
Hi

When a new email message is received in the inbox it is required to
(1) read the email message which contains XML document (xml nodes with data) as-is,
(2) extract the data within xml nodes and
(3) create a new record with the extracted data (xml node name is similar to SharePoint list field). So it is required to insert xml node data into relevant field.

Help with relevant Flow examples in meeting the above requirements appreciated.

Thanks
Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @RajuGolla ,

     

    If the XML data is included in the email body, then you may need to use WDL function to extract the data, preferably the email message has a fixed format.

    Please refer to the similar thread below to extract the data specified in the email body:

    https://powerusers.microsoft.com/t5/Building-Flows/Extracting-text-from-email/td-p/334919

    https://powerusers.microsoft.com/t5/Building-Flows/Extract-text-from-body-of-an-email-and-create-new-rows-in-excel/td-p/104708

     

    After extracting the XML data, you need to use the XPath() function to parse it. Please refer to the following threads and see if it helps:

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/Parse-XML-using-Microsoft-Flow/td-p/114920

    https://powerusers.microsoft.com/t5/Connecting-To-Data/xPath-parsing-noob/td-p/345459

     

    Once parsed, you can insert data into the specified field based on the properties.

    If your email body has a fixed format, you can provide us with sample data so that we could provide the appropriate workaround.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Would anyone know how we extract xml data from an email attachment .xml file rather than the xml data being in the body of the email

  • TALTE Profile Picture
    2 on at

    I'm very new at Power automate, but I'm looking for the same thing that Alliant-Logan is looking for.  When I get new mail in Outlook, I wish the parse the XML attachment and create a SharePoint list item.  Thank you in advance for any help.

  • jlsayan Profile Picture
    4 on at

    Hi Alliant-Logan, was wondering if you ever get a response for this? Facing the same issue

     

    Thank you

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard