0

Using covert word still getting encoded response

I want to convert docx file with the following flow details

Convert Word

body is of file content  
but still getting following response

3 comments

  • Avatar
    Jay Goodison Official comment

    Hello Syed Iqbal

    This is correct; A File Content property in Power Automate is either just a base64 representation of the binary file (Like Encodian) or some but not all Microsoft connectors use a JSON structure which contains the mime type and a base64 representation of the binary file. Power Automate has built in intelligence to handle both formats.

    There is no need to manually convert the File Content to another format unless you have an advanced scenario; Power Automates in-built File Content processing rules are not documented, moreover there are bugs with the new UI which is why the old UI is still recommended.

    What are you trying to do? 

  • 0
    Avatar
    Syed Iqbal

    Hi Jay,

    Thanks for coming back. I am trying to read the content of docx files in a SharePoint document library and change the properties of that docx file if certain words found (Update few fields in document library related to that docx). 

  • 0
    Avatar
    Jay Goodison

    Syed Iqbal - You can't get the text contained within the Word document from the file content property. However, as you're converting to a TXT file by converting the base64 to a string you will see the data. This is explained in this post - Search Word Documents with Microsoft Power Automate

    However, there is now an easier way to do this; 

    You need to use the 'Get Text from Word' action to retrieve the text contained within the file, then use the 'Utility - Search Text (Regex)' action to verify the presence of the data within the text extracted from the file.

    Edited by Jay Goodison
Please sign in to leave a comment.