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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / pull content from Word...
Power Automate
Suggested Answer

pull content from Word document into SharePoint list

(0) ShareShare
ReportReport
Posted on by 4
I am trying to pull info from a MS Word document into a SP List. Within the MS Word doc I have tagged fields with Content Controls.
 
I have set up the SP list with columns to match the control fields in Word.
 
When I run my PA workflow, instead of putting the answers from Word CC fields into the SP list columns, it puts the formula in from my Compose steps in the workflow into the SharePoint.
 
Any help is greatly appreciated.
 
Thanks
 
PA-Workflow.png
SP List.png
Answers.png
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,425 Super User 2026 Season 1 on at
    Hi
     
    It looks like the issue is in your Compose actions.
    Right now, your XPath formulas are being treated as plain text, not as expressions. Because of that, Compose is not evaluating anything, it’s just outputting the text (xpath(...)). Then your Create item action writes that same text into SharePoint.
     
    Fix
    Open each Compose action and:
    - Delete the current value
    - Go to the Expression (fx) tab
    - Paste your XPath expression there
    - save
     
    This ensures Power Automate actually runs the expression instead of treating it as a string.
  • CU20031956-1 Profile Picture
    4 on at
    Thank you for your response, but I am still having an issue. I now get these 2 errors when I copy and paste the XPath code in the Expression (fx) tab.
     
    My document that I am pulling from is a word doc that has been saved as an XML file.
     
    Should I change w: to [local-name() -- something I saw on Copilot but not sure it applies
     
    Compose 1 Expression
    xpath(outputs('XML'), '/w:document/w:body/w:sdt[w:sdtPr/w:alias/@w:val="VendorName"]//w:t/text()')
     
    Compose 2 Expression
    xpath(outputs('XML'), '/w:document/w:body/w:sdt[w:sdtPr/w:alias/@w:val="VendorCategory"]//w:t/text()')
     
     
     
     
    compose-error.png
  • Suggested answer
    PowerDeveloperTP Profile Picture
    453 on at
    Hello,
     
    Could you please check below link. Hope this helps.
     
     
    Thank you.
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
    This helps others find solutions to future issues!
     
     
     
     
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard