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 / How to remove integer ...
Power Automate
Answered

How to remove integer from a list?

(0) ShareShare
ReportReport
Posted on by 6

Hello All,

I'm a new learner to power automate I was trying to remove an integer value using remove item from list action using value but it is throwing an error! can anyone help with this?

@actions

  • Verified answer
    eetuRobo Profile Picture
    4,607 Super User 2026 Season 2 on at

    Can you share what error is it giving you?
    Is saying: "Item not found: Item (theValueYouGave) isn't in the list?
    If so then make sure the item is actually an integer and not string or that you are actually trying to remove integer and not string.
    Removing Integer value: 

    eetuRobo_0-1715531885497.png
    Example of a list with 2 strings and 1 integer item:
    eetuRobo_1-1715531953444.png

    You could also check if it is string (Text value) or integer (Numberic value) by setting the list item on a variable and opening it. Double click the variable Then it says what type it is:

    eetuRobo_4-1715532272927.png

    vs

    eetuRobo_3-1715532165254.png

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Mahija_RPAFreak 

     

    If you have a list with numerous numeric values and wish to remove them individually, follow this approach:

     

    Begin by parsing the list and employing regular expressions to extract the digits from each element. Capture all the matches found in the list.

     

    Subsequently, iterate through the extracted matches using a loop. Convert each numeric item into its corresponding numerical value and then remove it from the original list.

     

    Deenuji_0-1715571956573.png

    Deenuji_1-1715572108368.png

     

     

    Code:

    Variables.CreateNewList List=> MultiList
    Variables.AddItemToList Item: $'''ABC''' List: MultiList
    Variables.AddItemToList Item: 123 List: MultiList
    Variables.AddItemToList Item: 3232343234344 List: MultiList
    Variables.AddItemToList Item: $'''BCD''' List: MultiList
    Variables.AddItemToList Item: 234 List: MultiList
    Text.ParseText.RegexParse Text: MultiList TextToFind: $'''\\d+(\\.\\d+)?''' StartingPosition: 0 IgnoreCase: False OccurrencePositions=> Positions Matches=> Matches
    LOOP FOREACH CurrentItem IN Matches
     Text.ToNumber Text: CurrentItem Number=> ListNumber
     Variables.RemoveItemFromList.RemoveItemFromListByValue Item: ListNumber ItemMatchAllOccurrences: True List: MultiList
    END

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

  • Mahija_RPAFreak Profile Picture
    6 on at

    Thank you for the solutions! @eetuRobo @Deenuji 

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard