cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GatorGrad0929
Frequent Visitor

Task separated into parts

Hello,

I am building an app where multiple project directors can be assigned a task.  How can I check to see if each project director has marked their part complete before the app moves to the next step in the workflow?

 

For example, someone puts in a request to have their room cleaned.  John is tasked with sweeping.  Mary is tasked with cleaning the windows.  Tim is tasked with vacuuming.  The room cannot be marked complete until each person marks their task complete.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @GatorGrad0929 ,

 

Try with the following logic criterion, check if "Pending" is in the Status column of filtered record by Task. When All parts of task are done, the button turns Editable from Disable.

//DisplayMode property of button to mark the entire task complete.
If( "Pending" in Filter('Table Name', TaskName="Room Cleaning").Status, DisplayMode.Disabled, DisplayMode.Edit)

Hope this helps.

Sik 

View solution in original post

5 REPLIES 5
rubin_boer
Super User
Super User

Hi there

 

there are a few ways but first of all how is the tasks being assigned to them and how do they update it. once they update the task you can used that to check the "progress".

 

let s you say you have a SharePoint List mySpList and a column TaskStatus. In PowerApps you could have a collect ClearCollect(colTaskStatus, filter(mySpList, TaskStatus = "Not Complete")). Insert a gallery control and set the datasource to colTaskStatus. Add a lalbel to the galler for the name of you project manager "labelName"

v-siky-msft
Community Support
Community Support

Hi @GatorGrad0929 ,

 

Could you please share more details with your app? If you're just talking about how to do it, just change the status to Finished when each part is done, and then just check if every related parts to the task are done.

 

Here are some data structures for your reference:

 

Task:

TaskID TaskName  Status

T001    Room Cleaning  UnFinished

 

Task Details:

TaskID ProjectDirector Status

T001  John  Finisned

T001  Mary  UnFinshed

T001  Tim  Finisned

 

Hope this helps.

Sik

@v-siky-msft @rubin_boer 

 

I have the app set so that when each project director completes their task, the status changes from "Pending" to "Approved".

I'm stuck on how to have the app check to see if each individual task as been completed before marking the entire project complete.

 

GatorGrad0929_0-1602502994711.png

 

Thank you.

Hi @GatorGrad0929 ,

 

Try with the following logic criterion, check if "Pending" is in the Status column of filtered record by Task. When All parts of task are done, the button turns Editable from Disable.

//DisplayMode property of button to mark the entire task complete.
If( "Pending" in Filter('Table Name', TaskName="Room Cleaning").Status, DisplayMode.Disabled, DisplayMode.Edit)

Hope this helps.

Sik 

View solution in original post

@v-siky-msft 

 

This was it!  I just had to tweak it a bit and filter the SharePoint list instead of the table, but it worked perfectly!

 

Thank you!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,055)