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 / If condition is not wo...
Power Automate
Answered

If condition is not working as expected

(0) ShareShare
ReportReport
Posted on by 73

I'm doing a test in Google Translate to detect if the text input is in English with it's auto detect feature so I dont need to translate it.

 

"IF" condition is not working as expected - what could be wrong with my flow.

On my first attempt it was working fine, after I tried using new variables to populate in text field, something did not worked well after. 

 

TestLang.jpgTestLang2.jpg

 

Really appreciate if you could help me on this.

 

Thanks

 

  • Verified answer
    VJR Profile Picture
    7,635 on at

    In the variables pane TestLangEnglish appears to be a table of rows and columns, so don't compare it like a string in the If statement. Use the Row Column notation. Variable data types - Power Automate | Microsoft Learn

     

     

    VJR_0-1668134858926.png

     

  • Zdahn Profile Picture
    73 on at

    Is that really possible to have a table variable for the extract data flow when the value of extracted is a text already?

    In the Advance Setting for the Extract Data flow - I selected Single value and appeared just as I expected. But still did not worked.

     

    Zdahn_0-1668144003261.png

     

     

    Could you help me with this please. 

  • Zdahn Profile Picture
    73 on at

    I mean, I'm still not getting the text value "English - detected" when I run the flow, it's the table that appearing, and I don't know how I did it on my first run.

     

    And now it's becoming more confusing that the Extracted value for my translated text worked to appear on my Display message flow as expected even the format is in table.

    Extracted data.jpg

  • valor Profile Picture
    4 on at

    Since I found this thread and was confused, let me explain.

     

    When you use the "Extract data from web page" action, the output is a data table. If you're extracting, as in the question, a single web element then the datatable variable data type will have one column and one row. Here in the "display message" or even the variable output at the end of a flow run causes the "observer effect" and casts the data type to a string -- which makes you THINK you have the right value.

     

    TLDR: When using "extract" access the extracted value with

    %VariableName[0][0]%

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard