Questions tagged [query-expressions]

Use for assistance when dealing with Microsoft Dynamics CRM QueryExpression objects and their use.

Query expressions are used in methods that retrieve more than one record, such as the IOrganizationService.RetrieveMultiple method, in messages that perform an operation on a result set specified by a query expression, such as BulkDeleteRequest and when the ID for a specific record is not known.

Useful Links:

  1. Build queries with QueryExpression
  2. Code sample
126 questions
0
votes
1 answer

Can't convert nor cast BusinessEntity to DynamicEntity

I'm getting error when I try to execute the last line in this reply. I run the following code: QueryExpression query = new QueryExpression { LogicalName = "contact", ... } BusinessEntityCollection response =…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
1 answer

Optimize query expression with .contains()

I have a many-to-many table that correlates an object to a place, for example 1 1 2 1 4 3 5 9 6 2 I have a different table of many places, and there are several tables linked into it by foreign key like address book entries and history. What…
ItinerantEngineer
  • 255
  • 1
  • 4
  • 14
0
votes
5 answers

Can a single LINQ Query Expression be framed in this scenario?

I am facing a scenario where I have to filter a single object based on many objects. For sake of example, I have a Grocery object which comprises of both Fruit and Vegetable properties. Then I have the individual Fruit and Vegetable objects. My…
Jarvis Bot
  • 481
  • 6
  • 15
0
votes
1 answer

How to fetch members of a dynamic marketing list independingly of the query

I'm trying to get the list of members of a dynamic marketing list. When it's only a single (or just a few) lists, I could fetch the results of the underlying query individually. However, when the number of marketing lists raises, the fetching…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
2 answers

Not all columns retrieved on `new ColumnSet(true)` in a plug-in

I'm building the following query. For some reason, it doesn't bring to me all the fields. I've checked the spelling and when I assign values to those field, I even switched the name, leading to an exception. So I know for sure that they exist and…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
1 2 3
8
9