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 multiple columns...
Power Apps
Answered

Split multiple columns for Patch function to work in SharePoint List

(0) ShareShare
ReportReport
Posted on by 20

Hello,

 

I am having trouble getting this function to work how i want. Please let me know if what i want to accomplish is even possible. 

I have a request form that i want to allow the requester to request multiple things for multiple people. 

 

I need to be able to split and patch three columns "mobile equipment", "Trainee full name" and trainee email" to submit as separate items in my share point list. 

 

The form and formula is pictured below:

faithdwn_0-1614729087324.png

faithdwn_1-1614729100413.png

 

 

Form Snapshot.png
Form Dax.png
Categories:
I have the same question (0)
  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @faithdwn ,

    Do you want to create new records that user name and email are one-to-one correspondence?

    From you screenshot, I see that the mailbox name is the corresponding user name, so do you want to create 6 new records based on your current input?(since you have 2 mobile equipment and 3 user information now. If you type 2 value in mobile equipment and 4 value in user information, it should create 8 new records).

    If yes, you can refer to my steps:

    1. Create a list to keep the records. My list called “bulkpatch” with three Text columns called “mobile equipment”, “Trainee full name” and “Trainee email”:

    v-albai-msft_0-1614827669058.png

    2. Add a button and use below formula to combine "Trainee full name" and Trainee email" together(also save Split(DataCardValue3.Text,",") into a collection called “equipment”):

    Clear(Combined);
    ForAll(
    Sequence(CountRows(Split(DataCardValue18.Text,","))),
    Collect(Combined,{
    fullname:Last(FirstN(Split(DataCardValue18.Text,","),Value)).Result,
    email:Last(FirstN(Split(DataCardValue19.Text,","), Value)).Result
    })
    )
    ClearCollect(equipment,Split(DataCardValue3.Text,","))

    v-albai-msft_1-1614827669062.png

    v-albai-msft_2-1614827669064.png

    3. Add another button to patch new records:

    Ungroup(ForAll(Combined,
     ForAll(equipment,
     Patch(bulkpatch,Defaults(bulkpatch),{Title:"JustTitle",'mobile equipment':Result,'Trainee full name':Combined[@fullname],'Trainee email':Combined[@email]})
     )
     ),"Value")

    See results:

    v-albai-msft_3-1614827669067.png

    Best Regards,

    Allen

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard