Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Extract text data from the docx file from sharepoint

(0) ShareShare
ReportReport
Posted on by 4

hey guys I am actually working with the power automate .From the SharePoint shared Document/MVP_Coe I need to extract the text from the documents whenever a file gets uploaded. How can I actually convert the output of get file content base64 string to the original text (text inside the document). Can anybody help me with this part.WhatsApp Image 2024-01-24 at 2.56.52 PM.jpeg

 

WhatsApp Image 2024-01-24 at 2.56.53 PM.jpeg

 

WhatsApp Image 2024-01-24 at 2.56.53 PM (1).jpeg

 

WhatsApp Image 2024-01-24 at 2.56.53 PM (2).jpeg

 the base64tostring functions expression is :base64toString(outputs('Get_file_content')?['body'])

 

but it shows error.

@ManishSolanki  @Pstork1 

  • Nivitha_16 Profile Picture
    4 on at
    Re: Extract text data from the docx file from sharepoint

    Is there a way to do this extracting text from the word docx file from sharepoint folder path why because my use case it to save the docx file in sharepoint from there I need to extract the text. The trigger and flow i have mentioned above.

     

  • Pstork1 Profile Picture
    67,035 Most Valuable Professional on at
    Re: Extract text data from the docx file from sharepoint

    DOCX files are actually .zip containers that hold an XMl document.  Here's an article on how to get at the content in a Docx. Extract text from Word docx files with Power Automate (tachytelic.net)

  • Nivitha_16 Profile Picture
    4 on at
    Re: Extract text data from the docx file from sharepoint

    May i Know why am i getting the input and output like this after adding the expression

    base64toString(outputs('Get_file_content')?['body']?['$content'])

    WhatsApp Image 2024-01-24 at 4.14.54 PM.jpeg

  • ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Extract text data from the docx file from sharepoint

    Hi @Nivitha_16 

     

    Pls try below expression:

    base64toString(outputs('Get_file_content')?['body']?['$content'])

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1