Saltar al contenido

Source-code based storage of documents

In this documentation we will create an extension that allows uploading documents from a BLOB to Document Central via Code. Extending a report with Document Central code is used so that when a report is printed or a document is posted/converted, it is possible to automatically generate and add a Document Central Barcode during that process.

The following requirements must be met:

  • The Document Central module must be licensed.
  • CORE must be available in the extension as a reference.
  • Document Central must be present in the extension as a reference.

Adding Inbound Documents

For adding documents into the Inbound list 2 Functions in the "SIM_DI Upload Management" can be used AddInboundDocument & AddInboundDocumentFromSilentUpload.

AddInboundDocumentFromSilentUpload

There is 1 Overload for the AddInboundDocumentFromSilentUpload Function: Overload 1:

Var Name Data Type Sub Type Length Description
No Filename Text The original file name of the document
No Base64File Text The file as a base64 string
No InboundListCode Code 20 Code of the Inboundlist
No StatusCheckText Text Statuscheck
No Recordref RecordRef The data record reference to which the document must be uploaded.
No ParamContentTypeText Text The Text of the Contenttype
No InfoTagText Text Infotag
No EnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" The Source Status
No OriginText Text OriginText

AddInboundDocument

There are 2 Overloads for the AddInboundDocument Function:

Overload 1:

Var Name Data Type Sub Type Length Description
No Filename Text The original file name of the document
No Base64File Text The file as a base64 string
No InboundListCode Code 20 Code of the Inboundlist
No StatusCheckText Text Statuscheck
No BarcodeText Text The Text of the Barcode
No InfoTagText Text Infotag
No EnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" The Source Status
No OriginText Text OriginText

Overload 2:

Var Name Data Type Sub Type Length Description
No Filename Text The original file name of the document
No Base64File Text The file as a base64 string
No InboundListCode Code 20 Code of the Inboundlist
No StatusCheckText Text Statuscheck
No BarcodeText Text The Text of the Barcode
No InfoTagText Text Infotag
No EnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" The Source Status
No OriginText Text OriginText
No ExtraInfoDictionary Dictionary of [Text, Text] Extrainfo Dictionary

AddInboundDocumentFromExternal

Hay 1 sobrecarga para la función AddInboundDocumentFromExternal:

Sobrecarga 1:

Var Nombre Tipo de datos Subtipo Longitud Descripción
No ParamFileNameText Text El nombre de archivo original del documento
No ParamBase64Text Text El archivo como cadena base64
No ParamInboundListCode Code 20 Código de la lista de entrada
No ParamMetadataJsonText Text Metadatos como cadena JSON
No ParamRecordId RecordId El ID de registro al que debe vincularse el documento
No ParamContentTypeText Text El texto del tipo de contenido
No ParamDocumentLibraryCode Code 20 Código de la biblioteca de documentos
No ParamInfoTagText Text Etiqueta de información
No ParamEnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" El origen del documento