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

Community site session details

Session Id :
Power Up Program - Build A Canvas App
Suggested answer

App is not refreshing when book gets checked-in

(0) ShareShare
ReportReport
Posted on by 5
I am working on creating the "My Library Manager Part 4" section of the Power Apps course.  I am able to successfully check-out a book and am having an issue where when I check-in a book it still shows as checked out.  Here is a summary of what the issue that I am having.
When I click the 'check-in' button I get the notification saying "You have successfully checked the book in" and when I look at the Loans table I see the correct return date however my Power App is not refreshing so the book still shows up in the app and when I look at the Loans table the book has not been returned. 
 
This is the fx that I am using for my check-in button
Patch(
    Loans,
    ThisItem,
    {'Date Returned': Now()}
);
Patch(
    BookCopies,
    {
        BookCopies: ThisItem.'Book Copy'.BookCopies,
        CheckOutStatus: CheckOutStatus.Available
    }
);
Notify("You have successfully checked the book in",NotificationType.Success);
Refresh(Loans)
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    50,275 Super User 2025 Season 2 on at
    App is not refreshing when book gets checked-in
     
    You said that you looked at the Loans table (which you refreshed)
    But it looks liked the Status comes from the Books Table
     
    Don't forget to Refresh that also

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • timl Profile Picture
    35,799 Super User 2025 Season 2 on at
    App is not refreshing when book gets checked-in
     
    I just tested this and it works for me.  The first thing I would check is the Items property of your gallery.
     
    Can you confirm it references the 'Current Loans' view and that this view is set up to correctly return only those books on loan? If not, that would explain why the book doesn't disappear from the list when you click the 'check in' button.  
     

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

Leaderboard > Microsoft Power Up Program Community

#1
timl Profile Picture

timl 164 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 160 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 95 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics