coreBOS extension that permits mass import of documents
This works like this:
filelocation.php
configuration file to change the import directory variable $filedirectory
. This directory is where the documents must be copied and from where the extension will read them and import them. Alternatively, you can add the global variable MDI_File_Import_Directory
and set it to the path of the directory where the files to import are.filename.ext
__FILENAME__
, this special value will create the records setting the document record title to the name of the filebmfoldername
returns a document folder ID or name to relate with the imported document. The rule gets the context variable filename
bmrelation
returns a CRMID of a record to relate with the imported document. The rule gets the context variable filename
We can change the logic to associate to any other entity or by any other field.
Should I manually change the file name of the documents to import?
Yes, you will have to change their names to adapt to the format expected by the plugin. It currently expects to find the Contact or Account ID number but we can adapt that if you already have your files in some other format. For example, for a client here in Spain, where each citizen has a unique ID card number we have a version that looks for this number in a custom field of the contacts.
Do you think I can import 3000 documents in one upload?
You should be able to import 3000 in one shot with no problem, but it will all depend on the capacity and configuration of your server, that is why the extension eliminates the files once imported. Thanks to that feature, if it stops for any reason you just launch it again and it will continue.
Example If i have a document called 12345.pdf and contact name Adam Smith, what will be the file name of the document?
Supposing that the contact Adam Smith has a Contact ID of: CON987, then the file must be renamed to: CON987_12345.pdf to be imported.
If I import all those files, can I still add more file to each contact?
Yes, of course, the imported documents are simply normal coreBOS documents that will live along side all the others you may upload in other ways before or after.