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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Problem with custom search functionality

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I've designed a solution for one of my clients which is in the financial industry (stock market specifically), and I'm having a problem with one of their requests.

My client uses MS CRM 4.0 for keeping track of what sectors (banking, construction etc.), companies (e.g. Citibank, AIG) or finanical reports (Daily Market Report, Financial Sector Report etc.) each contact is interested in, and we use that data to send them articles, reports, or stock tips by email regarding the sectors or companies they have selected.

So I created new entities to keep track of this, and it is something like this:

  • An entity called "Sector", which is also the parent entity of "company"
  • An entity called "Company" (these are actually stock codes, not the same as "account")
  • An entity called "Research Services"

All of these entities have N-N relationships with "Contact".

The logic is this: A contact may be interested in the banking sector, not interested in the construction sector, but interested in a single company X that is in the cons. sector. He may also be interested in our financial research report and daily market report. So we link all of these companies, sectors or services with that specific contact.

And let's say we have a stock tip about company X. We do a mailing using the quick campign to all contacts who are interested in company X, plus all contacts who are interested in the construction sector in general, plus contacts who subscribed for our "Contruction Research Report Service".

Now the problem:

My client wants me to implement an advanced contact search functionality. This functionality will allow them to do searches that go something like this in writing:

"Find all contacts who are interested in the banking sector, or are interested in company Y or company Z, or have subscribed to our Financial Report Service."

  1. As you may guess, this can't be done in advanced search, because there is more than one related entity, so you can't group them with "OR".
  2. Using the marketing list entity to search one-by-one for these criteria and merging the contacts that way doesn't work, because it is static. Basically you have to create a new marketing list each time new contacts are added or old contacts sign up for new reports.
  3. Querying the database using FetchXML doesn't work because of the same reason as no.1.

I guess the only option I have left is creating an ASP.NET application, designing an interface for the search (which will be very hard, considering all the different combinations) and querying the database with dynamically created SQL statements. The problem is, the results have to be shown in the normal CRM Grid. So I can't just use a normal ASP.NET Gridview for it. My client wants to be able to use all the functionality of the CRM Grid, just like you would get when you do an advanced search.

What are your ideas and solutions? Would really appreciate the help.

Thank you in advance.

Kutay Taskin

*This post is locked for comments

I have the same question (0)
  • teast Profile Picture
    350 on at

    I am not sure what functionality they are looking for from the grid, but you could easily do this in Reporting Services.

  • Kutay Taskin Profile Picture
    25 on at
    "I am not sure what functionality they are looking for from the grid..." Creating quick campaigns, CRM's export to excel functionality, viewing/editing/deleting specific contacts from the results, assigning contacts, using the preview... Basically, all the functionalities of the grid. Just listing the contacts doesn't do anything for me.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans