Hi Folks,
I have a dataverse table with a text column that stores project codes separated by semi colon (there can be only one project code as well in which case ";" might not be present). The table has other needed columns as well. I create a collection during app on start which contains project codes where current user has access. It just has a single column and one entry of project code per row.
Now, I would like to filter the data verse table based on the project codes in the local collection. How is this possible?
Example:
Data verse Table:
| Column1 | ProjectCode |
| Vendor1 | P12,P23,P14,P11 |
| Vendor2 | P33,P55 |
Local Collection:
ProjectCode
-----------
P12
P14
Expected output:
| Column1 | ProjectCode |
| Vendor1 | P12,P23,P14,P11 |
Edit: I tried below code with ForAll it seems to be working:
ForAll(colAdminProjects As adminProject,
Collect(colViewEmployeeVendors, Filter(Vendors,Active, adminProject.projectCode in ProjectCode))
)
Please share your suggestions, if there's any better approach
Thanks.

Report
All responses (
Answers (