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 / PowerApps: View only A...
Power Apps
Answered

PowerApps: View only Approved Version from a SharePoint List

(0) ShareShare
ReportReport
Posted on by

Hello Power Users,

 

My challenge is, when I display a data table or gallery based on a SharePoint online list, Authors and Approvers (based on Draft Item Security choice) always see the latest version of the SharePoint List item, irrespective of the content approval status (which could be "Pending Approval" or "Rejected"), while the regular users always see the latest approved version.

 

Is it possible to fetch and display only the latest Approved version of each item for ALL users?

 

Hope my question is clear!

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @RDATTI ,

    Have you enabled "Content Approval" option for your SP List?

    Do you want to display the latest Approved version of each item for ALL users within your Gallery?

     

    I have made a test on my side, please consider take a try with the following workaround:

    3.JPG

    Set the Items property of the Gallery to following:

    Filter('20190816_case6', 'Content approval status' = "Approved")

    On your side, you may type:

    Filter('Your SP List', 'Content approval status' = "Approved")

    Note: I assume that you have enabled "Content Approval" option for your SP List.

     

    Above formula may cause a Delegation warning issue, if the amount of your SP List records is not more than 2000, you could ignore this warning issue.

    If the amount of your SP List is more than 2000, you could consider bulk-load records from your SP List into a collection in your app, then use the collection as data source in your app instead of original SP List data source. Please check and see if the following threads would help in your scenario:

    https://powerusers.microsoft.com/t5/General-Discussion/Pulling-in-large-ish-SQL-tables/m-p/243777#M71518

    https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Sort-gallery-with-multiple-fields/td-p/379730

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Delegation-Formula-Help/m-p/394039#M115089

     

    Best regards,

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard