Hello,
I'm playing with Dataverse and filtering data. For my sample, I have two Entities :
- Project
- Member
They are linked each other with a Many-To-Many relationship (so a One-To-Many relationship both sides).
I'm a trying to display all "Opened" Projects for a specific Member. To do so, I first get the Member using a Lookup on the Member table then Filter the "relationship" on the status like that :
ClearCollect(
colProjects;
Filter(
myMember.Project;
ThisRecord.ProjectStatus = "Open"
)
)
My issue is that the query raises an error when looking in the Monitor (no error in the Power Apps Studio designer) with the following error returned by the internal query sent to Dataverse by Power Apps : Expression expected at position 0 in '/pub_projectstatus eq 'Open''.
Here is the query that is generated by Power Apps (as seen in the monitor) : https://[org].crm4.dynamics.com/api/data/v9.0/pub_members(0c350c17-5711-ec11-b6e6-000d3ab70dc0)/pub_projects_members?$filter=/pub_projectstatus eq 'Open'
The issue is here (the "/" in red in the query) : https://[org].crm4.dynamics.com/api/data/v9.0/pub_members(0c350c17-5711-ec11-b6e6-000d3ab70dc0)/pub_projects_members?$filter=/pub_projectstatus eq 'Open' . Removing the "/" and executing the query in my browser works as expected.
Strange isn't it as it seems that there is a bug in Power Apps ?
Thanks