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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 491

#2
WarrenBelz Profile Picture

WarrenBelz 407 Most Valuable Professional

#3
11manish Profile Picture

11manish 331

Last 30 days Overall leaderboard