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 / Canvas Apps - Split wi...
Power Apps
Unanswered

Canvas Apps - Split with delimiter and get individual string values

(0) ShareShare
ReportReport
Posted on by 77

Dear All,

 

I'm new to Power Apps so the question may seem basic.

I'm fetching a dynamic string from DB which is having slashes in between for example "A/B/C/D/E" now I want to split this using delimiter (slash in this case) and get "individual" values like, "A", "B","C","D" & "E" and then set it to the individual textboxes on page. (I'm having 5 textboxes on the page)

 

I am using split function but it's giving me table values which I can set to dropdown but unable to take individual string values from this.

 

Can you please help?

 

Thanks & Regards,
Sanjay Adsure

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    You can use the Index function to get a specific element from an array, so for example if you assign the split outcome to a variable varSplitString, you would use

     

    Index(varSplitString, 2)

     

    would get the second row from the split.

     

    If you want to make it more dynamic, you could create a gallery with the checkbox inside it, use the variable as Items for the gallery and set the checkboxes according to the items in the gallery.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Assuming you know that there will always be 5 values for your 5 text boxes, you can collect your 'Split()' using 'ClearCollect()' and then reference using 'Index(x, x).Result'

     

    Example:

    Button:

    ClearCollect(colSplits, Split("A/B/C/D/E", "/"))

    Text Boxes:

    Index(colSplits, 1).Result

    metsshan_0-1658816731148.png

     

    Now, if the number of values is not known, I would recommend looking in to Galleries/Collections and exploring other tutorials and documentation online which covers the handling of dynamic data sets.

  • SanjayAdsure201 Profile Picture
    77 on at

    Dear @shoog ,

     

    Thank you very much! 🙂

     

    Thanks,

    Sanjay

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard