Skip to content

Interface WSB_IDCAFileHandlerV2

Properties

Name Value
Access Public

Methods

wgFncDeleteFile

Deletes a file from the Document Archive.

Parameters

Type Name Description
Record "WSB_DCARemoteFile" pRecWSB_DCARemoteFile A Document Archive file record containing the details on the file.
Boolean pSuspendError Suspend error on failure.

Returns

Type Description
Boolean true iff successful

wgFncDownloadFile

Downloads a file from the Document Archive.

Parameters

Type Name Description
Record "WSB_DCARemoteFile" pRecWSB_DCARemoteFile A Document Archive file record containing the details on the file.
Codeunit "Temp Blob" vCduTempBlob A TempBlob containing the downloaded file contents.
Boolean pSuspendError Suspend error on failure.

Returns

Type Description
Boolean true iff successful

wgFncGetRequiredOAuth2Scopes

Gets the list of scopes that this file handler requires access to.

Parameters

Type Name Description
List vScopes The list of scopes that this file handler requires access to.

wgFncGetSetupPage

Gets the setup page for this file handler where users can configure settings.

Returns

Type Description
Integer The ID of the file handler's setup page.

wgFncInitFileRecord

Performs initializations for Document Archive file records specific to this file handler.

Parameters

Type Name Description
Record "WSB_DCARemoteFile" vRecWSB_DCARemoteFile A Document Archive file record.

wgFncUploadFile

Uploads a file to the Document Archive.

Parameters

Type Name Description
Record "WSB_DCARemoteFile" pRecWSB_DCARemoteFile A Document Archive file record containing the details on the file.
Codeunit "Temp Blob" pCduTempBlob The TempBlob containing the file contents to upload.
Boolean pSuspendError Suspend error on failure.

Returns

Type Description
Boolean true iff successful