Skip to content

Source-code based storage of documents

Document Central can be extended with code that allows uploading documents from a BLOB to Document Central via code. This approach makes it possible to automatically generate and add a Document Central barcode when a report is printed or when a document is posted or converted.

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 Mgt" 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 The Source Status
No OriginText Text OriginText
No ExtraInfoDictionary Dictionary of [Text, Text] Extrainfo Dictionary

AddInboundDocumentFromExternal

Var Name Data Type Sub Type Length Description
No ParamFileNameText Text The original file name of the document
No ParamBase64Text Text The file as a base64 string
No ParamInboundListCode Code 20 Code of the Inbound list to which the Document should be inserted
No ParamMetadataJsonText Text Metadata as a JSON string
No ParamRecordId RecordId The record ID to which the document must be linked
No ParamContentTypeText Text The text of the content type
No ParamDocumentLibraryCode Code 20 Code of the Document Library
No ParamInfoTagText Text An Info tag
No ParamEnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" The source of the Document