web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Read string, convert t...
Power Apps
Unanswered

Read string, convert to collection, write back to string

(0) ShareShare
ReportReport
Posted on by

My scenario is as follows.

I have a SP list with a column that is single line text, used to save down Tags/Labels. These are saved separated by semicolons.

In the PowerApp, I now want to read these strings, split them and put them into a collection, then have the user edit said collection. Then save back down as a string separated by semicolons.

I find it relatively simple to write something such as 

 

ClearCollect(colText,Split("Test1;Test2;Test3",";"))

 

 to create my collection and to subsequently work with it. How do I best initialise this collection creation though, so that the user can right away work with the collection?

This is all done within a form, I'm looking to replace the text input presently in place in there.

Hope I've expressed myself clearly enough and look forward to any ideas on how to best to this.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @eltibu ,

     

    Please try this:

    ClearCollect(colText,Split("Test1;Test2;Test3",";"));Clear(colText)

     

    The clear function will delete all items in the collection and keep the column.

     

    Best Regards,

    Wearsky

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard