cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Get file content

I want to send an email, if the content of the file contains "HI TECHNICS". The flow starts when a new file is created in an Onedrive folder. How can I do this?

2 REPLIES 2
Anonymous
Not applicable

Jhonny97or_0-1639518521159.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I can't make it read the content of the file and meet the condition. How can I do it?

PatrickMSFT
Community Support
Community Support

Jhonny97or,

 

The tough bit with this kind of Flow is that our out-of-box connectors don't read the text contents of a document. There might be some expression possibilities but even then, I'm not sure how reliable that would be.

 

Our dynamic variables for file content, body, etc. won't contain this information. Even if you decode the base64 output from File Content, it's mostly unreadable code.

 

I know that the Encodian connectors can do more here, like in this example:
https://www.encodian.com/blog/working-with-file-contents-and-files-in-power-automate/ 

 

This would require access to Encodian APIs, though as they're a third-party service.

 

You might have an easier time basing this Flow on file metadata as we have several more options there. You could also add some steps to your Flow that work with variables. Otherwise, you might have to develop a pretty heavily customized Flow using custom connectors.

 

I know it's not much, hope it helps!

 

Patrick

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,851)