cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Make collection item CSV in powerapps

Hi PowerUsers,

 

I have a collection where I have two columns

1 - WorkerName

2 - WorkerNumber

 

The workerNumber column has data which I want to be converted/transformed into a comma separated value.

Example:

 

Data in collection:

Screenshot_1.png

And output needed is like : 003616,003622,003680.

 

The idea is to parse this comma separated string as a parameter to run flow.

Screenshot_2.png

And that Flow will be parsing this string as "IN" operator of SQL.

 

I have figured the flow part already, just need some assistance with generating this comma separated string.

 

Looking forward to awesome response as usual.

 

Regards,
Ali Nawaz

1 ACCEPTED SOLUTION

Accepted Solutions
gabibalaban
Dual Super User
Dual Super User

Hi @Anonymous ,

 

Use Concat() function for this:

 

UpdateContext({CSVStringGoesHere,Concat(Datasource,WorkerNumber&","})

 

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Dual Super User
Dual Super User

Hi @Anonymous ,

 

Use Concat() function for this:

 

UpdateContext({CSVStringGoesHere,Concat(Datasource,WorkerNumber&","})

 

Hope it helps !

Anonymous
Not applicable

@gabibalabanThanks man it worked perfectly 🙂
I wasn't aware of this function before this.

Went a little ahead of this and trimmed the extras 🙂

Set(WorkerNumCSV, Match( Concat( ManagerHierarchyColl, WorkerNumber & ", " ), "^(?<trim>.*), $" ).trim );

 

Thanks again 😄

Best Regards,

Ali Nawaz

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,685)