Overview:
I've coded a simple console app that can connect to a Dynamics CRM instance following on from this walk-through.
Now I need to create a second method that will perform a filtered query on the users of that CRM within the C# code using LINQ.
Advanced Find Queries:
I tried this out using the Advanced Find search on Dynamics which equates to the following:
Query 1:
Look for: Users
Primary Email Status -> Equals -> Pending Approval
Query 2:
Look for: Users
Select -> Mailbox
Status -> Equals -> Inactive
Question:
How can the two queries above be translated to LINQ within the Dynamics SDK C# code?