Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Using 'Under' query relation against multiple fields

$
0
0

Hi,

I'm just getting to grips with Dynamics CRM and I am having difficulty with this Advanced Find query.

We have a table of Contacts, and a table of Accounts. Each Contact has three fields, Organisation 1, Organisation 2 and Organisation 3. The university I work for has its own account University of X and each department has its own account, which is hierarchically linked to the University of X account by the Parent Account field. The departmental Accounts may link to a Contact under any of the three Organisation fields.

I need to set up query that finds all contacts for whom one or more of the Accounts linked under the Organisation fields has University of X as Parent Account or for whom any of the Organisation fields links directly to University of X. My proposed structure is:

OR

-- "Organisation 1" Equals "University of X"

-- "Organisation 2" Equals "University of X"

-- "Organisation 3" Equals "University of X"

-- "Organisation 1" Under "University of X"

-- "Organisation 2" Under "University of X"

-- "Organisation 3" Under "University of X"

... but this query won't work, because you cannot group the Under clauses with the OR grouping. Surely there is a way to do this? Please can you offer any help?

Thanks!


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images