I am trying to hide/show my custom entity (DataTask) Views based on some custom conditions. I intend to use a Plugin to achieve this using RetrieveMultiple message within savedquery (primary entity) entity. I am trying to follow this link.
I have tried adding the step to execute in the pre-validation, pre-operation and post operation step. But neither of these triggered the plugin and did not execute when I am loading the View of my custom entity.
Please suggest for which action it will trigger the savedquery with RetrieveMultiple message.