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 Apps / Collect a list of inte...
Power Apps
Answered

Collect a list of integers in the ID column of a collection

(1) ShareShare
ReportReport
Posted on by 183

Hello, 

I'm struggling a bit to store a list of integer in the "ID" column of a collection.

 

I have a flow that returns a list of integers as a string : "1,2,3".

I want to store those integers in a collection which as one column and I want this column to be named "ID".

 

This formula gives me the expected result : 

 

ClearCollect(test;[1;2;3])

 

But the column name is then "Value".

 

I want the same result, but with a unique column named "ID".

 

I know it is pretty simple but I can't find the correct way to do it.

 

Thank you 🙂

Categories:
I have the same question (0)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @Jedediah ,

     

    try this: 

     

    ClearCollect(test;{ID:1};{ID:2};{ID:3})

     

    Here's the way to do it directly with the string of integers: 

    Clear(test);;
    ForAll(Split(StringFormFLOW;",");Collect(text;{ID:ThisRecord.Value}))
  • timl Profile Picture
    36,823 Super User 2026 Season 1 on at

    Hi @Jedediah 

    If you've already built your collection, another option is to rename Value to ID like so:

    ClearCollect(test;
     RenameColumns([1;2;3];Value; ID))
    )
    



  • Jedediah Profile Picture
    183 on at

    Hey @DBO_DV and @timl !

     

    Thank you for helping me to figure this thing out.

     

    Here is the working code :

    UpdateContext({locSplittedItems:'myFlow'.Run(First(myCollection).ID).items});;
    Clear(myCollection);;
    ForAll(Split(locSplittedItems;",");Collect(myCollection;{ID:Value(ThisRecord.Value)}))

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard