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 / Form.LastSubmit bug wh...
Power Apps
Unanswered

Form.LastSubmit bug when submitting across multiple screens

(0) ShareShare
ReportReport
Posted on by 63

My issue is strange, in the PowerApps builder everything works fine. However in production when playing the app I run into the issue.

 

I have one Main_Form on Screen_1 and then 6 child forms on different screens. The child forms are joined in SharePoint lists using number columns to store the ID from the item saved in Main_Form. The child forms are saved in the OnSuccess function of Main_Form using consecutive (not concurrent - but I've tried both) SubmitForm() calls.

So in all the child forms there is a ParentId field which has a default value of Main_Form.LastSubmit.ID. The Main_Form is saved using a button replicated on each screen which simply uses SubmitForm(Main_Form). If I use the save button on Screen_1 everything works. However, if I try to use the save button (which is exactly the same) on any other screen the child forms fail to get the Main_Form.LastSubmit.ID value.

 

I've tried creating test buttons from scratch outside of any containers or canvas sections and still no luck. As a workaround, I added a navigation step in the other screens to first navigate to Screen_1 and then call SubmitForm(Main_Form) and that seems to work. I've just never ran into this issue before. Especially weird that it works perfectly when editing the app in the builder.

 

I also tried toggling on "Keep recently visited screens in memory" with no luck. I'm using the following features:

  • Formula-level error management
  • Container control
  • Enhanced formula bar
  • Components
  • Explicit column selection
I have the same question (0)
  • thjeffri Profile Picture
    Microsoft Employee on at

    Hi Zach,

    I tried running a quick test based on your description but wasn't able to replicate the issue.  We may need some more detail.

     

    If you're concerned there may be a bug here, can you open a case with our support team?  Our engineers will work with you to validate the issue.  That way if there is an issue in need of fixing by Microsoft, we can work with the correct teams to do just that.

     

    Thank you!

    Tom

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard