cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ali_Nawaz
Helper III
Helper III

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
Super User
Super User

Hi @Ali_Nawaz ,

 

Use Concat() function for this:

 

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

 

Hope it helps !

View solution in original post

2 REPLIES 2
gabibalaban
Super User
Super User

Hi @Ali_Nawaz ,

 

Use Concat() function for this:

 

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

 

Hope it helps !

View solution in original post

@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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,219)