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 / recognize entities in ...
Power Automate
Answered

recognize entities in text - extracting the value

(0) ShareShare
ReportReport
Posted on by 10

Hi there, I am working on  an automation in Power automate Desktop which extracts data from a cell in excel, the data has words in and before the part that i need, I have used the activity "recognize entities in text" which looks for "numbers" which does work when I look inside the variable produced the value is there that I need, however I can't seem to get that value.

 

I've tried creating a new set variable and taking the data but not getting anywhere.

 

an example of the data is this "a variable with words 12345 hello there" I require just the number value. 

Is there a better way to do this, perhaps just using Regex?

I have the same question (0)
  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @Dyna, could you copy the actions that you are using to extract the number and paste them here? Also what is the version that you are using? 
    I'm curious because I added the action "Recognize entities in text" with input "a variable with words 12345 hello there" and it extracted the number successfully.

    Thank you!

  • Dyna Profile Picture
    10 on at

    Hi there, thanks for a quick response.

    In terms of version: 2.16.215.22020

    see below

    Capture.JPG

    what's currently coming back from the entity var is this. (If I double click that it does give me the "12345" I require, but i can't seem to get that into a variable to reuse

    Capture2.JPG

     

    I was using the set variable to confirm I was getting the correct info back

    Hopefully this makes sense.

     

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Why is there 2 columns.  This is a Datatable?  I thought for sure 'Reconginze entities in text' would come back to a List variable.  Can we see the data in %LAAccountEntry%?  If you run past when it is populated, you should be able to open the variable pane, hover over the variable, click the 3 dots and click View.  Screenshot that, so we can see what is in it.

  • Dyna Profile Picture
    10 on at

    apologies for the slow reply, 

    Capture.JPG

    Regards,

    Lee

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Ok, so that is definitely a DataTable variable type.

     

    Datatables can be referenced by %DataTable[RowIndex][ColumnIndex]% on a 0 based index ([0] = row 1).

    So, Set Variable %LAAccountNumberFormatted% to %LAAccountEntry[0][1]%

     

    Good luck!

  • Dyna Profile Picture
    10 on at

    thanks a lot, didn't realise you could do that as the same in powershell etc

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard