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 / How to check the statu...
Power Apps
Answered

How to check the status of the previous item in a gallery?

(0) ShareShare
ReportReport
Posted on by 50

Hello everyone.


I have a task management app and would like your help.

 

The objective of this application is that the user selects a building and sees its tasks to be carried out.

 

I thus created several sharepoint lists according to a task and in this list I informed the building and the user concerned by the task.

The names of the lists and the names of the tasks are the same.

 

I thus created a gallery which displays all the tasks of the user, when he selects the task he is redirected to another page in which he can validate the task.

 

I would like to prevent the user from being able to select and validate a task when the previous one is not done.

 

do you have any idea how i could solve this problem?

 

thanks

Categories:
  • MF-12051538-0 Profile Picture
    406 on at

    Hi @EdouardVH ,

    If you could add an index column for the steps in your SP lists, then you could LookUp the highest index value for your list where 'completed' = true, and then only allow navigation for those records where the index is no more than 1 greater than the number you look up.

    I hope this helps.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @EdouardVH :

    Are the tasks in your task list arranged in order? If so the previous task of the task selected by the user can be found by ID.

    For Example:

    LookUp(
     Sort(YourSPList,ID,Descending),
     ID<YourGallery.Selected.ID
     ).Status

    Best Regards,

    Bof

  • EdouardVH Profile Picture
    50 on at

    Thanks for your help,

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard