Skip to content

Interface WSB_IDCAFileHandler

Properties

Name Value
Access Public

Methods

wgFncDeleteFile(WSB_DCAFile):Boolean

Deletes a file from the Document Archive.

Parameters

Type Name Description
Record "WSB_DCAFile" pRecWSB_DCAFile A Document Archive file record containing the details on the file.

Returns

Type Description
Boolean true iff successful

wgFncDownloadFile(WSB_DCAFile, Codeunit::System#Utilities#Temp Blob@):Boolean

Downloads a file from the Document Archive.

Parameters

Type Name Description
Record "WSB_DCAFile" pRecWSB_DCAFile A Document Archive file record containing the details on the file.
Codeunit "Temp Blob" vCduTempBlob A TempBlob containing the downloaded file contents.

Returns

Type Description
Boolean true iff successful

wgFncGetRequiredOAuth2Scopes(List[Text]@)

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:Integer

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(WSB_DCAFile@)

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

Parameters

Type Name Description
Record "WSB_DCAFile" vRecWSB_DCAFile A Document Archive file record.

wgFncUploadFile(WSB_DCAFile, Codeunit::System#Utilities#Temp Blob):Boolean

Uploads a file to the Document Archive.

Parameters

Type Name Description
Record "WSB_DCAFile" pRecWSB_DCAFile A Document Archive file record containing the details on the file.
Codeunit "Temp Blob" pCduTempBlob The TempBlob containing the file contents to upload.

Returns

Type Description
Boolean true iff successful