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 / Sequence Submit Form a...
Power Apps
Unanswered

Sequence Submit Form and auto-numbering item

(0) ShareShare
ReportReport
Posted on by 64

Is it possible to use the function Submit form anf sequence in one command?

 

I have a simple SP list. After pressing the button I would like to save the form and call the command to repeat this procedure as many times as there are in the TextInput (I did it with the Patch function, but in my case it is inactive)

 

 

ForAll(
 Sequence(Value(TextInput.Text)),
 Patch(
 'Store',
 Defaults('Store'),
 {'Width': DataCardValue1.Text},
 {'Height': DataCardValue2.Text},
 {'SN': varSN+1}
 )

 

 

Additionally, I would like to broadcast more numbers to this Item (e.g. 101, 102, 103, 104, ...)

I tried to make it through a variable

 

 

Set(varSN,Last('Store')).'SN'

 

 

The effect is that the first record is written well (last position + 1) while each subsequent record is written with the same number

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @Mjetek404 ,

    You need to reference the Sequence Value to increment - also the structure below will be much quicker

    Patch(
     'Store',
     ForAll(
     Sequence(Value(TextInput.Text)),
     { 
     'Width': DataCardValue1.Text,
     'Height': DataCardValue2.Text,
     'SN': varSN + Value
     }
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Mjetek404 Profile Picture
    64 on at

    Thank you @WarrenBelz , You can help quickly as always 🙂

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard