GetDistinctValuesImportFileRequest Class

Definition

Contains the data that is needed to retrieve distinct values from the parse table for a column in the source file that contains list values.

public ref class GetDistinctValuesImportFileRequest sealed : Microsoft::Xrm::Sdk::OrganizationRequest
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")]
public sealed class GetDistinctValuesImportFileRequest : Microsoft.Xrm.Sdk.OrganizationRequest
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/crm/2011/Contracts")>]
type GetDistinctValuesImportFileRequest = class
    inherit OrganizationRequest
Public NotInheritable Class GetDistinctValuesImportFileRequest
Inherits OrganizationRequest
Inheritance
GetDistinctValuesImportFileRequest
Attributes

Examples

The following example shows how to use this message. For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface instance. For the complete sample, see the link later in this topic.

Remarks

For the Web API use the GetDistinctValuesImportFile function.

Usage

Pass an instance of this class to the Execute(OrganizationRequest) method, which returns an instance of GetDistinctValuesImportFileResponse.

Privileges and Access Rights

To perform this action, the caller must have privileges on the ImportFile entity and access rights on the record specified in the ImportFileId property. For a complete list of the required privileges, see GetDistinctValuesImportFile message privileges.

Notes for Callers

Use this message only after you have created a parse table by using the ParseImportRequest message. Do not use this message after you use the ImportRecordsImportRequest message. You cannot access the parse table after the import job submitted by the ImportRecordsRequest message has finished running.

Constructors

GetDistinctValuesImportFileRequest()

Initializes a new instance of the GetDistinctValuesImportFileRequest class.

Properties

columnNumber

Gets or sets a column number in the CSV, XML Spreadsheet 2003 (.xml), or text source file for which the distinct values are returned. Required.

ExtensionData

Gets or sets the structure that contains extra data. Optional.

(Inherited from OrganizationRequest)
ImportFileId

Gets or sets in ID of the import file that is associated with the source file. Required.

Item[String]

Gets or sets the indexer for the Parameters collection.

(Inherited from OrganizationRequest)
pageNumber

Gets or sets the page number in the source file. Required.

Parameters

Gets or sets the collection of parameters for the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)
recordsPerPage

Gets or sets the number of data records per page in the source file. Required.

RequestId

Gets or sets the ID of the request. Optional.

(Inherited from OrganizationRequest)
RequestName

Gets or sets the name of the request. Required, but is supplied by derived classes.

(Inherited from OrganizationRequest)

Applies to

See also