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 / only be able to edit l...
Power Apps
Answered

only be able to edit last trip

(0) ShareShare
ReportReport
Posted on by 7

Hi,

We created logbook and we set up the rule if the "End KM" is only blank then user can edit the form. Otherwise they will not be able to edit once they filled the form. However now we have some issue that users are making lots of error and they need to back and fix the issue but we don't want the edit all entries.

I was wondering if someone could show me how we can let the use edit last two entries. 

If(IsBlank(ThisItem.EndKM), Navigate(srn_enterReading)); The Gallery already use filter option based on latest "DateOfTrip"

 

 

 

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,584 Most Valuable Professional on at

    Hi @ShivaShibshib ,

    Try this on the OnSelect of the Gallery (then have an Edit screen available)

    With(
     {
     wLast2: 
     With(
     {wList:YourListName},
     FirstN(
     Filter(
     Sort(
     wList,
     ID,
     Descending
     ),
     'Created By'.DisplayName = User().FullName
     ),
     2
     )
     )
     },
     If(
     !IsBlank(
     LookUp(
     wLast2,
     ID = ThisItem.ID
     ).ID
     ),
     Navigate(YourEditScreen)
     )
    )

     

    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.

     

  • ShivaShibshib Profile Picture
    7 on at

    @WarrenBelz Thank you so much, It was successful. I just going to test it now.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard