Hello,
I was trying to see if I could use the CDS trigger "When a record is selected" to have the user upload a file as a word document, do some things with the file, and then attach the file as a note on a Dyanmics 365 entity. I have created a siple flow to see if this is possible as below:

base64(triggerBody()['file']['contentBytes'])
I used the base64 conversion. This flow will attach the file as a note, but the word document is unreadable and will not open:

Here is what it looks like after I test the flow:

Does anyone know why this is not working? Is there a special conversion needed for contentBytes?
Thanks!