web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Question about Global/Quick Find across regions

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a client with offices in different countries. They have a requirement that when using either the Global search or Contact quick find, that the results are filtered by the region of the office of the person doing the search, e.g. UK office user search for "John Smith" returns John Smith contacts marked as being associated to the UK office business organisation (via lookup on contact record). 

I was wondering how I might achieve this if I'm only able to add 1 quick find view for the contact entity?

Any guidance would be much appreciated!

Thanks,

Andrew

I have the same question (0)
  • Verified answer
    Wayne Walton Profile Picture
    13,730 on at

    The search functionality is scoped by the same security roles that govern what a user can see.  So the most straightforward way to do this is to make Business Units based on geography, make sure Read permissions are set to Business Unit and not Global, and then your search results will be limited by security.  

    If this is not acceptable, you're looking at custom development.

  • Verified answer
    Kokulan Profile Picture
    18,054 on at

    Hi

    Like Wayne suggested, best way to isolate records to regions/locations, you could create Business Units but if your business processes and security is not modelled that way and if you only want the Quick Find or Global Search results, you can look into Creating Retrieve multiple plugins, intercept the query and add conditions dynamically to filter the results only to the current users office region

    Please have a look at the example below that just adds more condition to the query

    [View:https://community.dynamics.com/crm/b/crmeventexecutionpipeline/archive/2018/12/10/append-search-column-s-in-quick-find-view-microsoft-dynamics-365:750:50]

    One thing to note, the example is shown in the above link, the query parameter passed to the plugin is converted to QueryExpression. This will work for the classic interface but won't work on Unified Interface.  For unified interface, you have to convert the query parameter passed to the plugin to FetchExpression

  • Community Member Profile Picture
    on at

    Thanks for the reply Wayne, that will do the trick

  • Community Member Profile Picture
    on at

    Thank you Kokulan, I appreciate the detailed response! Thankfully the Business units should suffice.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans