Ga naar inhoud

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

Er is 1 overload voor de functie AddInboundDocumentFromExternal:

Overload 1:

Var Naam Gegevenstype Subtype Lengte Beschrijving
Nee ParamFileNameText Text De originele bestandsnaam van het document
Nee ParamBase64Text Text Het bestand als base64-tekenreeks
Nee ParamInboundListCode Code 20 Code van de inkomende lijst
Nee ParamMetadataJsonText Text Metadata als JSON-tekenreeks
Nee ParamRecordId RecordId Het record-id waaraan het document moet worden gekoppeld
Nee ParamContentTypeText Text De tekst van het inhoudstype
Nee ParamDocumentLibraryCode Code 20 Code van de documentbibliotheek
Nee ParamInfoTagText Text Infotag
Nee ParamEnumSIMDIInboundDocSource Enum "SIM_DI Inbound Doc Source" De bron van het document