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

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:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    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
    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
    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
    on at

    Hi @LukePWilkins :

    Hope this link helps:

    Reference guide to using functions in expressions for Azure Logic Apps and Power Automate 

    Best Regards,
    Bof

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard