web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trava de fluxo utiliza...
Power Automate
Suggested Answer

Trava de fluxo utilizando TXT no Onedrive

(0) ShareShare
ReportReport
Posted on by
Olá, 
 
Elaborei um fluxo para comparação de taxas de câmbio, com recorrência de 2 minutos. No entanto, estou tentando elaborar uma trava no fluxo para que logo após ele atingir a meta de cotação, ele não envie um e-mail, ou seja, crie duas condições, onde a primeira ele precisa comparar duas taxas de câmbio e se for verdadeiro ele segue para a próxima condição que é exatamente a trava, onde se o TXT estiver preenchido com 0 ele continua rodando o fluxo, se estiver 1 ele não enviará o e-mail. 
 
O fluxo de comparativos funciona bem, mas o reconhecimento de 0 ou 1 na condição não está funcionando, talvez porque ele não identifique como número e sim como texto. Alguém consegue me ajudar? 
 


Segue condição: 
trim(outputs('FlagAtual')) is equal to 0
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    The value read from a TXT file in OneDrive is always text, even if it looks like 0 or 1. Your condition fails because it compares a string to a number. Fix it by converting the value before comparing, e.g.
     
    @equals(int(trim(outputs('CurrentFlag'))), 0)
    or
    @equals(trim(outputs('CurrentFlag')), '0')
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard