Hi @nerdifand
If you have an entity form with subgrid.. what kind of filter are you looking for here? Via Dataverse/D365, you can set that subgrid to show a specific view, and perform the filters on that level. You can also force the subgrid to show only related (child) records.
If you need anything more custom, you can use the approach I mentioned earlier in this thread and create a custom grid via Liquid, and inject this via JS in your form.
With regards the RetrieveMultiple Plug-in, that's a very bad practice, basically that Plugin is triggered for any query you perform against the entity, via Portals, via Model-Driven App, via API, etc. Even if you add certain conditions in your Plugin, you might still face unwanted behaviour/results as part of your plugin.
If you have any other questions might be better to create a new thread, as this one is already resolved.
thanks