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 / split string into coll...
Power Apps
Answered

split string into collection or object using MatchAll

(0) ShareShare
ReportReport
Posted on by 162

Hi 

I need you help. I have string scanned with barcode scanner: 54586/29807/18/4,5 

and i need to split it and add to powerapps collection. columns is splitted by "/"

How I can make it with Match or MatchAll?

 

opit_0-1615658148609.png

 

Categories:
I have the same question (0)
  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    Here is one way to make a collection with the transposition of your split string.

     

    ClearCollect(
    colTest,
    Split("54586/29807/18/4,5", "/");
    ClearCollect(colTransposed, AddColumns(Table({}),
    "OrderNo", Last(FirstN(colTest,1)).Result,
    "SaleNo",Last(FirstN(colTest, 2)).Result,
    "Quantity", Last(FirstN(colTest, 3)).Result,
    "Weight", Last(FirstN(colTest, 4)).Result))

     

    Regards,

    Pat

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard