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

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,413 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
    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

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard