Hi all, I am trying to fill a collection with filtered data from Dataverse but getting an error when trying to filter up two lookups.
Formula:
ClearCollect(collectionSwitchboardFaults, Filter(SwitchboardInspectionFaults, Switchboard_Inspection__c.Inspection__c.Work_Order_Line_Item__c = varInspection.Work_Order_Line_Item__c));
Error:
Error when trying to retrieve data from the network: Could not find a property named 'irs_Inspection_c' on type 'Microsoft.Dynamics.CRM.irs_switchboardinspectionfault'.
Edit: This error doesn't make any sense to me. Why is it trying to find the Inspection_c field on the SwitchboardInspectionFault table when I am trying to lookup to the SwitchboardInspection table first?
Database Schema:
(Table names are slightly different)

Looking at the Monitor the getRows call that failed had this request URL:
https://xxxxxx.xxxx.dynamics.com/api/data/v9.0/irs_switchboardinspectionfaults?%24filter=irs_Inspection__c%2Firs_work_order_line_item__c+eq+%271WL2w000001lLSXGA2%27&%24expand=irs_Switchboard_Panel__c%28%24expand%3Dirs_Switchboard__c%29%2Cirs_Switchboard_Inspection__c%28%24expand%3Dirs_Inspection__c%29&%24count=true
Filtering through only one lookup works fine but is obviously not the data I need.
ClearCollect(collectionSwitchboardFaults, Filter(SwitchboardInspectionFaults, Switchboard_Inspection__c.PrimaryKey = varSwitchboardInspection.PrimaryKey));
Anyone have any ideas?