Hello all,
I'm looking for a specific solution, and I don't even know where to start. I don't know if a standard PowerAutomate would do, or if I would need an Ai Builder for this task. Anyway below is what the flow should do
1 - When an email arrives to a specific folder matching a specific string on the subject (Trigger)
2 - Read the .txt attachment in the email
3 - Look for a specific string in the .txt file.
4 - On finding this specific string, send a Team's alert including text from lines above and below it.
Any hints are appreciated.
Hi @Digzol
Give a try this way.
Lets's say you have a text file attached with email with content like below
You need to check text file contains Teams Alert or not and sent notification to team with file content.
Flow used for this
expression: base64ToString(items('Apply_to_each')?['contentBytes'])
If the condition is True,
then post a message in ms teams with file content
expression used in body: base64ToString(items('Apply_to_each')?['contentBytes'])
Output from flow
Bot send message to teams
Hope this helps
Mark it as solution if it resolves your query 🙂
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2