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 / Convert string from ar...
Power Automate
Answered

Convert string from array to integer

(0) ShareShare
ReportReport
Posted on by 5

Hello Community,

 

I'm parsing a table out from a mail with power automate. I just need to get the last item of the table. I managed to get this specific row and manage do store it into a variable.

But i failed to convert it to integer.

My data can takes several forms like : 480 000 or just 0 or -0,03 or 452 000,23.

All i want is to convert the string into integer in order to make some logical test with the data after.

 

Today i have error when compose data with int() formula.

 

Jouv_1-1634547248010.png

 

Jouv_2-1634547292456.png

 


 

 

Best regards,

 

Kair0

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @Jouv 

    Did you try to use the trim expression before converting to INT?

     

  • Jouv Profile Picture
    5 on at

    Hello @Mira_Ghaly ,

     

    trim does not the same thing like in excel. It just remove blank space before and after not between.

    when my variable is equal to 125,2 or -125,25 or -0,03, int(trim(output(var))) will fail.

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

    Hi @Jouv :

    The key is that 125.2, -0.03 and other decimal values are all floating-point numbers, they are not integers.vbofengmsft_0-1634626713903.png

    You'd better try:

    float(trim(output(var)))

    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

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard