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 Dollar Amount ...
Power Automate
Answered

Extract Dollar Amount from String, but skip first fullstop

(0) ShareShare
ReportReport
Posted on by

I have the following snippit from a GMAIL get email activity

 

"This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct"

 

I would like to extract the $ amount of the bill. 

I followed some online tutorials, but getting stuck at skipping the first fullstop in the middle of the dollar amount. 

Any ideas please?

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @LukePWilkins :
    Do you want to get the amount in this string

     

    This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct

     

    If so,I've made a test for your reference:

    vbofengmsft_0-1630909654673.png

    Result:

    vbofengmsft_1-1630909678644.png

    In addition, Plumsail Documents is a fee-based third-party service but you can apply for a one-month free license.

    Best Regards,

    bof

     

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

    Hi @LukePWilkins :
    Do you want to get the amount in this string

    This month your services come to $94.07. This amount is due on 21 Sep 2021. Spark logo Account # 123456789 $94.07 to pay by 21 Sep 2021 $94.07 to pay by 21 Sep 2021 Pay Online If you have a direct

    If so,I've made a test for your reference:

    vbofengmsft_0-1630909654673.png

    Result:

    vbofengmsft_1-1630909678644.png

    In addition, Plumsail Documents is a fee-based third-party service but you can apply for a one-month free license.

    Best Regards,

    bof

     

  • LW-28112008-0 Profile Picture
    on at

    Thank you for the tip, I see that would work well. 

    I was hoping for a process that used the native functionality of MS Flow, rather than tap into a 3rd party API.

     

    Cheers for posting, it will help other people in the community

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @LukePWilkins :

    Please try:

    vbofengmsft_0-1630982103543.png

    The formula:

     

    concat('$',
    if(
    endsWith(split(split(outputs('Compose'),'$')[1],' ')[0],'.'),
    take(split(split(outputs('Compose'),'$')[1],' ')[0],sub(length(split(split(outputs('Compose'),'$')[1],' ')[0]),1)),
    split(split(outputs('Compose'),'$')[1],' ')[0]
    )
    )

    Result:

    vbofengmsft_1-1630982165880.png

     

     

    Best Regards,

    Bof

     

  • LW-28112008-0 Profile Picture
    on at

    hey there @v-bofeng-msft , that is awesome! How do you learn this stuff? To come up with that formula.

    Thanks for the help, that is ace.

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard