We are using a custom web resource and need to perform a user-initiated search of several entities. We have tried using "parent.Xrm.Internal.messages.executeQuickFind" but it limits the results per entity to approximately 80 records as it really is a global search. We cannot use a custom FetchXML query as the code needs to work with multiple organizations that might have custom fields selected in the Quick Find view. Ideally we want to execute the Quick Find view with the value typed by the user against each of the appropriate entities.
You can easily get the ID of the Quick Find View like this:
urlgoeshere/.../savedqueries$select=name,savedqueryid&$filter=name eq 'Quick Find Active Accounts'
However this is not helpful as there doesn't seem to be a way to execute this view by modifying it to search for your value (for example I may want to search for "New York" just like in the entity search box).
Is it possible to retrieve the FetchXML for a system view using .js? I presume it is but Google is not very helpful as the terms are very generic and you get almost 100% irrelevant results. Or if anyone has a better suggestion it would be much appreciated.
*This post is locked for comments