IDataOperationExecutor interface
Methods
| create |
Creates a new record in the specified data source |
| delete |
Deletes the file or image data stored in a file/image column of an existing record. Only applicable to Dataverse data sources. |
| delete |
Deletes a record from the specified data source |
| download |
Downloads binary data from a file/image column in the specified data source |
| download |
Downloads binary image data from a Dataverse image column via the Web API |
| execute |
Executes the provided operation on the specified data source. |
| retrieve |
Retrieves records from the specified data source |
| retrieve |
Retrieves a record from the specified data source |
| update |
Updates an existing record in the specified data source |
| upload |
Uploads a record with binary data in the specified data source |
Method Details
createRecordAsync<TRequest, TResponse>(string, TRequest)
Creates a new record in the specified data source
function createRecordAsync<TRequest, TResponse>(tableName: string, data: TRequest): Promise<IOperationResult<TResponse>>
Parameters
- tableName
-
string
- data
-
TRequest
Returns
Promise<IOperationResult<TResponse>>
deleteFileOrImageFromRecord(string, string, string, string)
Deletes the file or image data stored in a file/image column of an existing record. Only applicable to Dataverse data sources.
function deleteFileOrImageFromRecord(tableName: string, id: string, columnName: string, partitionId?: string): Promise<IOperationResult<void>>
Parameters
- tableName
-
string
The logical name of the Dataverse table.
- id
-
string
The identifier of the record.
- columnName
-
string
The name of the file or image column whose data should be deleted.
- partitionId
-
string
Returns
Promise<IOperationResult<void>>
deleteRecordAsync(string, string, string)
Deletes a record from the specified data source
function deleteRecordAsync(tableName: string, id: string, partitionId?: string): Promise<IOperationResult<void>>
Parameters
- tableName
-
string
- id
-
string
- partitionId
-
string
Returns
Promise<IOperationResult<void>>
downloadFileFromRecord(string, string, string, string)
Downloads binary data from a file/image column in the specified data source
function downloadFileFromRecord(tableName: string, id: string, columnName: string, partitionId?: string): Promise<IOperationResult<Uint8Array>>
Parameters
- tableName
-
string
- id
-
string
- columnName
-
string
- partitionId
-
string
Returns
Promise<IOperationResult<Uint8Array>>
downloadImageFromRecord(string, string, string, boolean)
Downloads binary image data from a Dataverse image column via the Web API $value endpoint.
Only applicable to Dataverse data sources.
function downloadImageFromRecord(tableName: string, id: string, columnName: string, fullSize?: boolean): Promise<IOperationResult<Uint8Array>>
Parameters
- tableName
-
string
The logical name of the Dataverse table.
- id
-
string
The ID of the record containing the image.
- columnName
-
string
The name of the image column.
- fullSize
-
boolean
When true, requests the full-size image (?size=full). Defaults to false.
Returns
Promise<IOperationResult<Uint8Array>>
executeAsync<TRequest, TResponse>(IDataOperation<TRequest>)
Executes the provided operation on the specified data source.
function executeAsync<TRequest, TResponse>(operation: IDataOperation<TRequest>): Promise<IOperationResult<TResponse>>
Parameters
- operation
-
IDataOperation<TRequest>
Returns
Promise<IOperationResult<TResponse>>
retrieveMultipleRecordsAsync<TResponse>(string, IOperationOptions)
Retrieves records from the specified data source
function retrieveMultipleRecordsAsync<TResponse>(tableName: string, options?: IOperationOptions): Promise<IOperationResult<TResponse[]>>
Parameters
- tableName
-
string
- options
- IOperationOptions
Returns
Promise<IOperationResult<TResponse[]>>
retrieveRecordAsync<TResponse>(string, string, IOperationOptions)
Retrieves a record from the specified data source
function retrieveRecordAsync<TResponse>(tableName: string, id: string, options?: IOperationOptions): Promise<IOperationResult<TResponse>>
Parameters
- tableName
-
string
- id
-
string
- options
- IOperationOptions
Returns
Promise<IOperationResult<TResponse>>
updateRecordAsync<TRequest, TResponse>(string, string, TRequest, string)
Updates an existing record in the specified data source
function updateRecordAsync<TRequest, TResponse>(tableName: string, id: string, data: TRequest, partitionId?: string): Promise<IOperationResult<TResponse>>
Parameters
- tableName
-
string
- id
-
string
- data
-
TRequest
- partitionId
-
string
Returns
Promise<IOperationResult<TResponse>>
uploadFileToRecord<TRequest>(string, string, string, string, TRequest, string)
Uploads a record with binary data in the specified data source
function uploadFileToRecord<TRequest>(tableName: string, id: string, columnName: string, fileName: string, data: TRequest, partitionId?: string): Promise<IOperationResult<void>>
Parameters
- tableName
-
string
- id
-
string
- columnName
-
string
- fileName
-
string
- data
-
TRequest
- partitionId
-
string
Returns
Promise<IOperationResult<void>>