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 / Filtering Numbers from...
Power Automate
Answered

Filtering Numbers from Given Array in Power Automate

(0) ShareShare
ReportReport
Posted on by 162

Hi  @Power @automate @AutoMatey @automate3 @IAutomate @HAutomate @PowerAutomate @powerautomater1 @yipowerautomate @powerautm12 @powerautomate88 @powerautomate17 @o365_comunity ,

 

I'm working on a Power Automate flow where I have an array of values. The array includes a string. Here is the array:

[
"Current Date/Time",
"1",
"Invoice ID Customer",
"Customer ID",
"Customer tax ID",
"Customer name",
"Customer address",
"Customer address recipient",
"8",
"Billing address recipient",
"Due date",
"Payment terms",
"Invoice amount",
"Amount due",
"Purchase order ID",
"Previous unpaid balance",
"Remittance address",
"Remittance address recipient",
"Service address",
"Service address recipient",
"Service start date",
"End date",
"Shipping address",
"Shipping address recipient",
"Subtotal",
"25",
"Vendor tax ID",
"Vendor name",
"28 ",
"Vendor address recipient"
]

 

I would like to filter out the numbers from this array, so I'm left only with the string values. How can I achieve this in Power Automate? Any guidance or sample flow would be greatly appreciated.

 

hitakshi_0-1701066196234.png

 

 

 

Thank you in advance!

Hitakshi

Categories:
I have the same question (0)
  • Gdarmon Outlook Profile Picture
    372 on at

    In Power Automate, you can use the "Filter array" action combined with an expression to achieve this task. You can create a flow that filters out the numeric values from the array of strings using the isNumeric function available in Power Automate.

    Here are the steps to achieve this:

    1. Initialize your array: Set up an action to initialize your array of values.

    2. Filter array action: Add a "Filter array" action in your flow.

    3. Set the Filter array action configuration:

      • Use the expression not(isNumeric(item())) or isString(item()) within the Filter array action. This expression checks if the current item in the array is not a number.

    Gill

  • hitakshi Profile Picture
    162 on at

    Hi @DarmonGill 
    But 'isNumeric' is not defined or not valid.' In Power Automate.

  • Gdarmon Outlook Profile Picture
    372 on at
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @hitakshi ,

     

    You can use isInt function.

    vjefferni_0-1701072711208.png

    vjefferni_1-1701072764358.png

     

    To get string values instead of numbers, change the order or elements in the if statement:

    if(isInt(item()),'',item())

     

    Best regards,

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 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard