Hi everyone!
I am trying to archieve the following using the SDK.REST.retrieveMultipleRecords and facing a problem concerning the ODATA filter.
I have a Entity 1 with a simple lookup field to Entity 2. Now I try to execute a retrieveMultipleRecords with the filter set to only list me instances of Entity 1 where the linked Entity 2 has a specific name.
I already tried to set the filter like this: "$select=*&$filter=<Name of the lookup field in Entity 1>/Name eq '" + <name parameter>+ "'";
and
"$select=*&$filter=<Name of the relationship between the two Entities>/Name eq '" + <name parameter>+ "'";
But in case 1 I get an error message: Error 400: Bad Request: Reference to property Name on complex type EntityReference is not supported.
In case 2 I get the error that there is no 'Name' property in the Type 'Microsoft.Xrm.Sdk.Entity' at position 45.
Can somebody maybe give me a hint on how to set the filter correctly so that i am able to filter records with the 'Name' Property of the inlining EntityReference as the base?
Thx in advance!
*This post is locked for comments
I have the same question (0)