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.