I am a CRM system administrator (CRM 2016 SP1 on-premise). I am trying to register a plugin on the queueitem entity using the RetrieveMultiple message on Pre-operation stage to be able to intercept and modify the FetchXml of the query when the user searches for records using the Quick Find bar.
According to Microsoft queueitem entity does support the RetrieveMultiple message, but when I try to register it with the entity using the Plugin Registration Tool, I get the error:
Invalid Primary Entity or Secondary Entity
And when I register the plugin without defining the primary and secondary entities nothing happens when I search for queueitem records in any queue.