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 / Extract text data from...
Power Automate
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 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    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.

     

  • Nivitha_16 Profile Picture
    4 on at

    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

  • Pstork1 Profile Picture
    69,125 Most Valuable Professional on at

    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

    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.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard