BulkDeleteRequest.QuerySet Property

 

Applies To: Dynamics CRM 2015

Gets or sets an array of queries for a bulk delete job. Required.

Namespace:   Microsoft.Crm.Sdk.Messages
Assembly:  Microsoft.Crm.Sdk.Proxy (in Microsoft.Crm.Sdk.Proxy.dll)

Syntax

public QueryExpression[] QuerySet { get; set; }
public:
property array<QueryExpression^>^ QuerySet {
    array<QueryExpression^>^ get();
    void set(array<QueryExpression^>^ value);
}
member QuerySet : QueryExpression[] with get, set
Public Property QuerySet As QueryExpression()

Property Value

Type: Microsoft.Xrm.Sdk.Query.QueryExpression[]

Type: QueryExpression
The array of queries for a bulk delete job.

Remarks

The bulk delete job deletes the records that match the conditions that are specified in the queries.

The query must specify entity names and a column set. If the column set includes attributes where IsValidForRead is false or for which you don’t have access, they are ignored. For more information about field security, see How field security can be used to control access to field values in Microsoft Dynamics CRM.

When you use the QuerySet property, the value in the QueryExpression.PageInfo property is ignored. Instead, the system uses the query expression and creates a new PagingInfo object to retrieve up to 1000 records at a time. The process increments the page by 1 until all records that are included in the query are processed. You should modify the query as needed to match the exact set of records that you want to delete.

See Also

BulkDeleteRequest Class
Microsoft.Crm.Sdk.Messages Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright