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 / Extract Number From Te...
Power Automate
Answered

Extract Number From Text Field

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I need to build a power automate that takes pre existing data and adds a column as well as automatically adding this information to new submissions.... here is the backstory. 

 

I have a Sharepoint list with a field that has multiple lines of text separated by Char(10).. basically people are allowed to pick certain bullets that pertain to the submission. For example the multi line of text in Sharepoint may look like this...

 

1.1 tex text text text 
1.2 text text text text

2.1 text text text text 

4.2 text text text text

4.4 text text text text. 

 

I need to use power automate or Sharepoint or power apps to extract the numbers from the text field and concat them... essentially I need the outcome to be this 

1,2,4

 

I have tried a lot of things but can't seem to get it to work. Any ideas? 

Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @ausdenwolken6 ,

    We made a sample for you.

    SharePoint List.

    vhanytianmsft_0-1692759695530.png

     

    Flow:

    vhanytianmsft_2-1692759924568.png

    split(outputs('Compose'),outputs('Compose_2'))

    vhanytianmsft_3-1692760055996.png

    slice(item(),0,1)
    contains(variables('Result'),outputs('Compose_4'))

    vhanytianmsft_4-1692760329966.png

    join(variables('Result'),',')
    vhanytianmsft_5-1692760522903.png

    Result:

    vhanytianmsft_1-1692759885887.png

     


    Hope this will help you,

    Best Regards,
    Tina

     

  • ausdenwolken6 Profile Picture
    2 on at

    Wow this is great! I am running into an error at compose 3. It says it 'Split' expects its first parameter to be a type of string. The provided value is of type 'Null'. 

     

    Could this be because some people put nothing in the boxes and therefore the value for some of the rows would be null and others contain multiple or one? For instance rows may also look like these

     

    2.3 text text text (one value) 

     

    or 

     

    (blank)

     

     

     

  • v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @ausdenwolken6 ,

     

    Please try this in the Apply to Each:

    vhanytianmsft_0-1692863041178.png

    Hope this will help you,

    Best Regards,
    Tina

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard