web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to find last submi...
Power Apps
Unanswered

How to find last submitted item by user in SharePoint list?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

Edit form is submitting an item into the SharePoint list, How do I get the submitted list item in OnSucess attribute of edit form?

 

As "Form.LastSubmit" doesnt work for SharePoint list AND

First(Sort(colItems,ID,SortOrder.Descending)) -- might not give the correct item due two concurrent submission?

 

any clue?

 

Thanks,

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @dave8 ,

    I'm not sure what you want to achive. The function LastSubmit retrives the last succesfull record send throught the form to  sharepoint. Form.LastSubmit should work inside OnSuccess property of the form.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@dave8,

    Based on the issue that you mentioned, do you want to display the last submitted item once you submit the form?

    Could you please share a bit more about the scenario?

    Actually, if you use Form.LastSubmit, the item will be captured with the corresponding ID. If you just want to get the last submitted item, you could add a Gallery to display it.

    However, the acquisition of Form.LastSubmit attribute is not particularly stable, I think you could try to refer to the 'Modified'

    I have a test on my side, please take a try as below.

    Add a Gallery and set the Items property as below:

     

    First(Sort(Test1029,Modified,Descending))

     

    Now the item within the Gallery is the last submitted item. 

    You can set the Text property of the Label to display whatever you want.

     

    ThisItem.ColumnName

     

    Note: 'Test1029' is my SP list name, please replace it with yours.

    Best Regards,

    Qi

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 538

#2
WarrenBelz Profile Picture

WarrenBelz 420 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard