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 / Refresh not working
Power Apps
Answered

Refresh not working

(0) ShareShare
ReportReport
Posted on by

On refresh with the below command for getting error "Only managed connections can be refreshed." Please suggest

 

Office365_1.GetEmails({folderPath:"Inbox"})

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    on at

    Refresh can only be used with connections themselves (and those that represent data sources, such as a SQL table, an Excel file on dropbox, a SharePoint list, and so on), not with a function that is returned by a connection.

     

    For your scenario, if you have, for example, a gallery whose Items property is bound to Office365_1.GetEmails({folderPath:"Inbox"}), then you can instead store the items (e-mails) in a collection, and bind the Items property of the gallery to that collection. On a button to refresh the items, you can retrieve the items to the collection again, and since the collection is bound to the Items property of the gallery, the (updated) e-mails will be displayed. You'd also need to initialize the collection once (possibly when reaching the screen where the e-mails are displayed). For this scenario, your formulas would look something like this:

    RefreshButton.OnSelect: ClearCollect(emails, Office365_1.GetEmails({folderPath:"Inbox"}))
    EmailGallery.Items: emails
    BrowseScreen.OnVisible: Select(RefreshButton)
  • Staalbaard Profile Picture
    3 on at

    I also have a list connecting to a Table in an Excel file on OneDrive.

    In my case, I had to delete and recreate the connection (with the same name) before it refreshed.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard