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 / Get Multiple ID from a...
Power Automate
Unanswered

Get Multiple ID from a string and append to array

(0) ShareShare
ReportReport
Posted on by 195

Hello Everyone

Good day! 

I would like to ask if there's any way to get id's on a string and make it an array.


Example string:

#1234 loreim xd test #1422

 

I have manage to get id using expression split(split(trim(items('apply_to_each_here')['Short Description']),' ')[0],'#')[1]. This will get #1234. 


But what I need is to get all ids staring with '#' and make it in array. How to make these possible?

 

Thanks in advance for your help guys!

Categories:
I have the same question (0)
  • takolota1 Profile Picture
    4,980 Moderator on at

    @YamiteKudasai 

     

    One option is to use a Select action and some split expressions.

    So in the From field of the Select action, use

     

    Split(Insert String Here, '#')

     

    So that will split the string so each array line starts with an Id.

    From there, select the alternate view in the top/mid right of the action so the main input section goes from a 2 column table to a blank box.

    In the box use the expression

     

    First(split(item(), ' '))

     

    That should split on spaces & grab the 1st item before the 1st space, in this case the Id.

     

    Then the output of that Select action should be just an array of the Ids that had a # before them.

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
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 822

#3
Haque Profile Picture

Haque 482

Last 30 days Overall leaderboard