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 / Pushing collection ite...
Power Apps
Answered

Pushing collection items and variables into sharepoint list in the same line

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Currently trying to make these items show up in the same sharepoint list row. This is currently my code but they are working individually, but not together. I have included a photo of the current output. Does anyone know what the should be if i wanted to connect the two?

 

ForAll(CollectTest, Patch('List Test', Defaults('List Test'), {Title: Name}); Patch('List Test', Defaults('List Test'),{Title:BankNamex}, {XID:UserName}))

powerappss.PNG
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    The way you've got it structured you will end up with duplicate records, each with half the info.  Try this instead

    ForAll(CollectTest, Patch('List Test', Defaults('List Test'), {Title: Name},{Title:BankNamex}, {XID:UserName}))
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you!

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Have you solved your problem?

    Are the BankNamex and UserName both variables in your app?

    Do you want to patch each collection item and the variables into same line in your SP List?

     

    I have made a test on my side, please take a try with the following workaround:

    Set the OnSelect property of the "Submit" button to following:

    ForAll(
    CollectTest,
    Patch(
    'List Test',
    Defaults('List Test'),
    {
    Title: Name & BankNamex,
    XID: UserName
    }
    )
    )

    Please consider take a try with above solution, then check if the issue is solved.

     

    If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard