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 / Log/history for rental...
Power Apps
Answered

Log/history for rental app

(0) ShareShare
ReportReport
Posted on by 315

Hi! I am in the process of making a rental app for loaning out equipment at work.

I have one Sharepoint list with ItemNo, LoanStatus, among other information.

 

It is simple to create an app which tells us if the item is available or not.

But we need history. Who borrowed this item when?

 

My thought is to have another Sharepoint list for this and creata a new row every time an items is loaned out. The list will have columnns like:

ItemNo, DateBorrowed, PlannedReturn, DateActualReturn,BorrowedBy, among others.

 

In my scenario we will have one row in this list per rental per item.

 

My question:

  • Can anyone help me with the best way to write a new row to this list when someone is borrowing an item?
  • When returning the item, how do I make sure that I update the ItemNo row which is open/unreturned? And not the first ItemNo which was created in the log?
Categories:
I have the same question (0)
  • Verified answer
    MooseBot88 Profile Picture
    168 on at

    Hi,

     

    I know that one part of making a log of all equipment going out could be to patch it to a log,

    Patch(
     sharepointlist,
     {
     ItemNo: textbox.value,
     DateBorrowed: textbox.value,
     PlannedReturn: textbox.value,
     DateActualReturn: textbox.value,
     BorrowedBy: textbox.value,
     }
    );

     

    The textbox.value would be whatever your input would be. You could use an if statement to lookup the ItemNo and check whether a new column called LoanedOut is a yes or no. I'm not sure how would you do that but hopefully put you on the right track.

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard