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 numeric value ...
Power Automate
Answered

Extract numeric value from the string

(0) ShareShare
ReportReport
Posted on by

I have created a "Parse Json" to extract the values from my CSV file. the extraction is working fine, however, I need to get only the numerical value from a particular string, to insert one of the numeric values on my SharePoint list 

 

comangus13_0-1693458924683.png

The Case Number returned is 

"Case Number": "\"<div><a href=\"\"https://customercare-mastercard.my.salesforce.com//lightning/r/Case/5003u000016GRmiAAG/view\"\" target=\"\"_blank\"\">03679142</a></div>\"",
 
I am trying to remove everything from the string but the number 03679142, which is the one I need to insert on my SharePoint list 
 
I have tried split() and replace but can't make sense of what I am doing, I would appreciate any help
Categories:
I have the same question (0)
  • Verified answer
    v-hanytian-msft Profile Picture
    Microsoft Employee on at

    Hi @comangus13,

     

    We made a sample for you.

    slice(outputs('Compose'),add(nthIndexOf(outputs('Compose'),'>',2),1),nthIndexOf(outputs('Compose'),'<',3))

    vhanytianmsft_0-1693460369523.png

    vhanytianmsft_1-1693460397869.png


    Hope this will help you,

    Best Regards,
    Tina

     

     

  • Sundeep_Malik Profile Picture
    6,499 on at

    Hey @comangus13 

     

    I have added your data in a compose action. Then I have used two split functions.

     

    Sundeep_Malik_0-1693460734406.png

     

    Function used:

    split(split(outputs('Compose'),'_blank\"\">')[1],'</a>')[0]
     
    So firstly I am splitting it first _blank\"\"> and taking the 2nd element or 1st index of it.
    After that I am using 2nd split on </a> and taking 0 index of it or 1st element.
     
    Final Output:
    Sundeep_Malik_1-1693460872609.png

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 523

#2
Valantis Profile Picture

Valantis 318

#3
David_MA Profile Picture

David_MA 235 Super User 2026 Season 1

Last 30 days Overall leaderboard