Bulk importing files
What it does
This page describes how to setup the bulk-import codeunit, to import a lot of files at once and generate a separate record in an entity, for each file.
First setup
First, setup an entity with at least two fields: A text-field for the filename and a document field for the document.
Second, create or edit the following 5 "Static content".
- BulkImport.SagID, the SagID of the entity that is the target of the import
- BulkImport.UserGroupID, The GroupID of the usergroup that is allowed to access the bulk-import system
- BulkImport.FileTitleField, The systemname of the field where the name of the file should be stored
- BulkImport.FileFieldID, The FieldID of the field where the uploaded document should be stored
- BulkImport.StatusID, The StatusID that uploaded documents should have
Third, edit the url on the site and access main?command=dk.tempusserva.codeunit.bulkimport.ImportPage
Fourth, upload the files.
Next step could be to index all the files, allowing the content of the files to be searched and queried, maybe through ChatGPT.
How to invoke
[Steps to enable codeunit]
Options
[Optional options, that can be set at runtime, eg. url-parameters]
Configuration
[All possible configurations and where to edit them]
Developer info
- Type: CodeunitPagecontent
- Security: [eg. requires admin or session]
- Classpath: dk.tempusserva.codeunit.bulkimport.ImportPage