We have the following system which contain these main entities and the relation between them:-
- Project
- TaskList. One Project can have many TaskList. and one TaskList can have one to zero Project
- Task. One Task can have one TaskList. and one TaskList can have many Task.
- TaskVersionHistory. One Task can have zero to many TaskVersionHistory. and one TaskVersionHistory can have one and only one Task
- TaskPersonnel. One TaskPersonnel can have one and only one Task. and One Task can have zero to many TaskPersonnel.
- TaskMilestones. similar relation to TaskPersonnel and Task.
now we want to build a filtering screen, which have the Projects as drop-down list. and users can select the related Project or Projects and view the related TaskMilestones based on the above relation. so can we define a view or function inside SQL which accept the Project ID/s from Power Apps >> do the filtering inside the database and return the data to Power Apps?
Thanks