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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard