Table of Contents

KVSDMSPublicProcedures

Procedures

LoadRelatedFiles(Variant, Record KVSDMSFileBuffer) : Boolean

Summary: Loads the files of the associated DMS or ECM system related to the source record into the temporary files buffer.

procedure LoadRelatedFiles(SourceRecord: Variant; var TempFilesBuffer: Record "KVSDMSFileBuffer" temporary): Boolean

Parameters:

  • SourceRecord: Defines the source record to get the related archived files for.
  • TempFilesBuffer: Defines the temporary file buffer holding the found archived documents of the DMS or ECM system.

Returns: Returns true if the files have been loaded successfully, otherwise false.

LoadFiles(Variant, Record KVSDMSFileBuffer) : Boolean

Summary: Loads the files of the associated DMS or ECM system related to the assigned default search definition of the source record into the temporary files buffer.

procedure LoadFiles(SourceRecord: Variant; var TempFilesBuffer: Record "KVSDMSFileBuffer" temporary): Boolean

Parameters:

  • SourceRecord: Defines the source record to search the archived files for. The best fitting search definition will be used for retrieving.
  • TempFilesBuffer: Defines the temporary file buffer holding the found archived documents of the DMS or ECM system.

Returns: Returns true if the files have been loaded successfully, otherwise false.

LoadFiles(Variant, Code[20], Record KVSDMSFileBuffer) : Boolean

Summary: Loads the files of the associated DMS or ECM system related to the source record using the given search definition into the temporary files buffer.

procedure LoadFiles(SourceRecord: Variant; SearchDefinitionCode: Code[20]; var TempFilesBuffer: Record "KVSDMSFileBuffer" temporary): Boolean

Parameters:

  • SourceRecord: Defines the source record to search the archived files for. The best fitting search definition will be used for retrieving.
  • SearchDefinitionCode: Defines the code of the search definition to be used for searching the archived files.
  • TempFilesBuffer: Defines the temporary file buffer holding the found archived documents of the DMS or ECM system.

Returns: Returns true if the files have been loaded successfully, otherwise false.

UploadDocument(Variant, Text, Codeunit Temp Blob, Text, Text) : Boolean

procedure UploadDocument(SourceRecord: Variant; FileName: Text; FileContent: Codeunit "Temp Blob"; var ErrorMessage: Text; var FileID: Text): Boolean

CreateDocumentEnvelope(Variant, Text, Text, Text) : Boolean

Summary: Creates a document envelope with the specified filename in the associated DMS or ECM system for the given source record.

procedure CreateDocumentEnvelope(SourceRecord: Variant; FileName: Text; var ErrorMessage: Text; var FileID: Text): Boolean

Parameters:

  • SourceRecord: Defines the source record to create a document envelope for.
  • FileName: Defines the filename to create a Document Envelope with.
  • ErrorMessage: Returns an error message if the document envelope could not be created.
  • FileID: Returns the file ID of the created document envelope.

Returns: Returns true if the document envelope has been created successfully, otherwise false.