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 / SubmitForm and Update ...
Power Apps
Unanswered

SubmitForm and Update the same record

(0) ShareShare
ReportReport
Posted on by

I have two screens in my app, but on the first screen I send a form and then I need the same line with some fields and I am not getting it right, here is my code:

 

In the "OnSuccess" of my form there is this code:

 

Set(varLastID;Last(Table).ID))

 

SubmitForm(Form1);;

NewForm(Form1);;

Patch(Table;
LookUp(Table;ID=varLastID);
{IDFORMATED :"PERL"&Last(Table).ID);
Column1:TxtInput1.Text;
Column2:TxtInput2.Text;
Column3:TxtInput3.Text});

 

 

My mistake here is not saving the ID correctly, it saves the last ID in the previous item and the new ID in the new item, i.e. it looks like this:

 

ID:                     IDFORMATED (Columntext):

2                                   PERL3
3                                   PERL2

 

 

And I want it to do that:

 

ID:                     IDFORMATED (Columntext):

2                                   PERL00002
3                                   PERL00003

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
  • Gorilla_8 Profile Picture
    on at

    @Drrickryp 

     

    Thanks, part of my problem has been solved, now the rest is missing and I am burning brain cells here.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard