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 / Extract numeric value ...
Power Automate
Unanswered

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,484 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard