cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerAppSteve
Level: Powered On

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

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}))

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

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

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}))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

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

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}))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

PowerAppSteve
Level: Powered On

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

Thank you!

Community Support Team
Community Support Team

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

Hi @PowerAppSteve ,

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,797)