Hi Folks,
I have a scenario where I have to read the contents of an html file via power automate. The file arrives as an attachment of an email. I'm able to get the attachment and the content bytes. How do I get the actual content (html) inside the file? I need to parse through the same and produce filtered output.
Is it possible with power automate? Could you please provide any suggestions?
The below is what I have built so far and output of attachment body:
Thank you.
Hi @Shujaath_Khan ,
Thank you for the response. I tried your suggestion. I received the below output:
Any method to fix this?
Hi @rbn_nue
you can try below expression to read all text content from html file
base64ToString(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
ref here
Thanks
Please click Accept as Solution on this reply if it helped to solve your issue, and thumbs-up if you feel this is useful or important in other ways as a boost.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.