I use Recognize text in an image or a PDF document to extract text and save it to Excel. If I save each Text of the lines to a separate row in a Table in an Excel file, I can iterate through the rows, combine the text, and search it with Office Scripts. If I append each Text to a string variable, then put the resulting string into one cell in Excel, even though looking at the spreadsheet all of the text from the file is visible in the cell, Office Scripts only recognizes the first line of Text as the cell value. The cell does not look like it's missing any information from the document and it does not look like it has carriage returns embedded.
This is not working properly.
This works because each row is one line of Text.
Why is this happening? Can I strip a special character from the string variable in Power Automate before putting it into the cell to be able to recognize all of the text?

Report
All responses (
Answers (