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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Pull Text Values inste...
Power Automate
Answered

Pull Text Values instead of Row and column # from Find or replace data table

(0) ShareShare
ReportReport
Posted on by 145

Hi! 

I am trying to setup a flow that will narrow down each row record from a data table created by Extract data from web page, but only if the value from the 3rd column matches my specific variable. For example, I am trying to pull all the rows (with the exact text values) that have 'Suzanne Demo' listed as the values in column #3 and then insert those rows into a new data table. So for this example, I would expect to pull the row values with  'Classroom 365' and 'Classroom 35'.  When I use the Find or replace in data table action, I only get the row # and column # (see picture) not the actual text values I need. Not sure if I am missing a syntax or if another action is needed. 

value #1value #2value #3
Classroom 365Middle SchoolSuzanne Demo
Classroom 333Elementary SchoolGreen Demo
Classroom 16Middle SchoolJoe Demo
Classroom 22High SchoolMiller Demo
Classroom 13High SchoolMiller Demo
Classroom 35High SchoolSuzanne Demo

Alanisp22_0-1689016438312.png

 

I have the same question (0)
  • Verified answer
    mmonline Profile Picture
    169 on at

    This should work - see caveats & notes below.

    mmonline_1-1689021421098.png

     

    CAVEATS

    I assume the value you are searching for can only be found in one of your columns (names in the 3rd column - column[2]). If they could be found in other columns but you only want those from a specific column, you would add an If %Found['Column']% = 2 and only add values to your FoundDataTable in that condition.

     

    Also, I create variables for the values I add to the table. You don't have to necessarily. You could reference the columns directly. I recommend variables for readability and maintainability.

     

    NOTES

    • I re-created your table using the first Create data table  (WebData).
    • I create a 2nd table, FoundDataTable with 3 columns and delete row 0.
    • Loop through each entry in DataTableMatches - Found
    • We only need the Row Number from Found - stored as RowNum and convert to a number.
    • Refer back to your original table, WebData with the RowNum and store your column values.
      Classroom = %WebData[RowNum][0]%
      ClassType = %WebData[RowNum][1]%
      PersonName = %WebData[RowNum][2]%

    Hope that helps.

     

  • Alanisp22 Profile Picture
    145 on at

    This is perfect! Yay! Thank you soooo much!! 😁

  • mmonline Profile Picture
    169 on at

    You're welcome. Glad it worked!

     

    alice-curtsy.gif

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    To comment a bit on the caveats part of your response, you can in fact provide a column to search the value in inside the Find or replace in data table action:

    Agnius_0-1689055858416.png

    This would help make sure that the value is always matched in the relevant column only.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution.
    If you like my response, please give it a Thumbs Up.

    If you are interested in Power Automate, you might want to follow me on LinkedIn at https://www.linkedin.com/in/agnius-bartninkas/

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard