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 / Multiple Item create u...
Power Apps
Unanswered

Multiple Item create using repeating section (Gallery)

(0) ShareShare
ReportReport
Posted on by

Hi Guys

 

I am trying to create repeating section to create multiple SP list items.

But somehow, last line kept creating & duplicating in SP list.

Could you please help me...?

 

Screen - SP

AriYeom00_3-1663142530696.png

 

Screen - Repeating Section

AriYeom00_2-1663142407190.png

 

Icon Submit Code

 

ForAll(
 Gallery1.AllItems,
 Patch(
 InvoiceLineDetail,
 {
 Title: [@TextInput1].Text,
 LineNo:Value([@TextInput1_1].Text),
 CostCenter:[@ComboBox2].Selected.Value,
 LineDesc:[@TextInput1_3].Text,
 LineAmount:Value([@TextInput1_4].Text),
 FTE: Value([@TextInput1_5].Text)
 }
 )
);

 

 

 

 

Icon Add line Code

 

Collect(
 invDtlCollection,
 {
 InvoiceNo: Text(DataCardValue3),
 LineNo: Text(CountRows(invDtlCollection)+1),
 CostCenter: ComboBox2.Selected.Value,
 LineDesc: "",
 LineAmount:"" ,
 FTE:""
 }
)

 

 

 

 

Thank you.

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @AriYeom00 ,

     

    For the submit button, please try below formula instead:

    ForAll(
     Gallery1.AllItems As AA,
     Patch(
     InvoiceLineDetail,
     Defaults(InvoiceLineDetail),
     {
     Title: AA.TextInput1.Text,
     LineNo:Value(AA.TextInput1_1.Text),
     CostCenter:AA.ComboBox2.Selected.Value,
     LineDesc:AA.TextInput1_3.Text,
     LineAmount:Value(AA.TextInput1_4.Text),
     FTE: Value(AA.TextInput1_5.Text)
     }
     )
    );

     

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard