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 Automate / Project Dependency Tas...
Power Automate
Unanswered

Project Dependency Tasks Flow to notify Successor Task Assigned To their task is ready to work on

(0) ShareShare
ReportReport
Posted on by 16

Hello, 

 

Goal: Project for the Web: When a project task is completed that is a predecessor task, get successor task details and notify the assigned to user in teams. 

 

Side note: I have successfully created flows for new tasks, completed tasks and modified tasks to alert in teams through the flow bot to the user. Also, when I create a view on the Project Dependencies tab I can see a related look into the project task entity that allows me to see its individual information depending on if it is a predecessor task or successor task. 

 

Entities involved: Project Tasks, Project Task Dependency & Project 

msdyn_projecttask(msdyn_projecttaskid) = msdyn_projecttaskdependency(msdyn_predecessortask or msdyn_successortask) 

 

Summary: The project task id is the same id as the predecessor task id if it is a predecessor. The project task id is the id as the successor task if it is a successor task. 

 

What I tried: 

-When a Project task is completed CDS trigger: filter expression = msdyn_progress eq 1

  -Get a record: Project with Item ID = Project Id

    -List records: Project Dependency, here I don't know what filter to set to pull the record that is... projecttaskid = predecessortaskid

      & the successor task id      

      -Take that Predecessor task and identify its successor task 

        - Get successor task information 

          -Then Get Resource assignment

            - Then get bookable resource

              -Then get system user 

                -post adaptive card. 

 

 

Categories:
I have the same question (0)
  • Dribblej Profile Picture
    16 on at

    Here is another flow idea I Tried. 

     

    Screen Shot 2021-02-02 at 11.53.49 AM.png

    image.png

    Power Automate will not allow me to save the "List Tasks Dependencies" step without deleting the filter query. I need it to pull the record where the msdyn_projecttaskid = _msdyn_predecessortask_value because this can point to the correct Successor task I want to make the alert on. 

     

    Any ideas. I have racked my brain a lot on this one. 

    "Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'List_Task_Dependencies' at line '1 and column '1329' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'List_Task_Dependencies' to be referenced by 'repeatItems' or 'items' functions.'.'."

  • ProFe Profile Picture
    on at

    Hi, 

     

    I'm trying to implement more or less the same flow, can I ask you if you managed to make it work ?

     

    Thansk !

  • Verified answer
    Dribblej Profile Picture
    16 on at

    Screenshot 2023-07-05 at 9.21.24 AM.pngScreenshot 2023-07-05 at 9.22.37 AM.png

  • ghutchins Profile Picture
    2 on at

    @Dribblej 

    Are you able to provide some guidance on how you structure the filter query in the list task dependency? 

     

    This post has been extremely useful, however we are trying to resolve this final aspect, if you could advise?

  • HotWheels Profile Picture
    2 on at

    Hello, is the provided workaround still the best possible approach here or is there an easier alternative? Would like to see Microsoft implement this as a feature in their Project solution.

  • FlailingSnorlax Profile Picture
    12 on at

    For anyone trying to decypher this flow you need to List the resource assignments here with the 'List rows (legacy)' action instead of 'Get a row'

    FlailingSnorlax_0-1718289284420.png

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard