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 / flow to convert from S...
Power Automate
Answered

flow to convert from STING value into INT does not work as needed

(0) ShareShare
ReportReport
Posted on by 16

Hi All,

i am trying to parse e-mail invoices (html format) and put some variables like invoice nr, date and so on in a SharePoint online list.

This works very well.

One column in SharePoint online is configured as "currency" and of course does expect an int value (not a STRING)

Here comes the challenge: every parsed value is interpreted as STRING. so good so far.

The finally parsed value for the invoice amount is: 66,76 (as a STRING)

 

(the comma is correct and should not be changed nor removed - I am from Germany)

so I added a further initialize variable action with the following expression: int(variables('mny')) to convert the STRING into INT

Flow works without errors, but it removes the comma

with this configuration I received an expense of 6.676,00 โ‚ฌ instead of 66,76 โ‚ฌ in SharePoint Online.... not so good.

What am I doing wrong????? 😕

 

flow_result.pngflow.jpg

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

    Hi @frank2709,

     

    Because in the context of English users, a comma is considered to be an amount digit separator, not a decimal separator, so the "66,76" will be considered to an integer "6676".

    As a workaround, you could use replace() function, convert "," to ".", convert "." to ",". Then use number format action converts the number to Germany format:

    replace(replace(replace(outputs('Compose'),',','~'),'.',','),'~','.')
    float(outputs('Compose_2'))

    Screenshot 2020-12-31 111104.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Verified answer
    frank2709 Profile Picture
    16 on at

    Many many thanks !!!! I is working 🙂
    Thank you very much 🙂

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
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard