Media-File Import
Tailored · General
Invoice documents from your SFTP folder are attached to the matching items in Bilendo automatically.
What Media-File Import delivers
Documents on your items. On a schedule, Bilendo fetches your invoice documents from an SFTP folder and attaches each one to the items it belongs to. For Porsche companies the documents come from Porsche's document API instead.
Matching by file name. Bilendo reads a reference from the file name, for example the invoice number, and finds the item. Depending on your file names it matches the full file name against the document references of your ERP import, searches one value in a field such as the receipt number, or combines several values such as invoice number and customer number. A document is attached to every item it matches. Only published items are matched.
The right document type. Every document gets a fixed type, or Bilendo recognises the type from the file name.
Archives are unpacked. If you can only deliver archives with many documents, a splitter unpacks them first: ZIP archives with PDFs, or archives with XML and document pairs, and the formats of single clients.
Housekeeping. A document that was imported is removed from the server. Files that were not imported are moved to an
archivesubfolder after the number of days you choose and deleted later.
How it works
- You upload documents to an SFTP folder → Splitter unpacks archives, if needed
- You upload documents to an SFTP folder → Import job runs at its start hours
- Splitter unpacks archives, if needed → Import job runs at its start hours
- Import job runs at its start hours → File matches an item?
- File matches an item? → (Yes) Document attached, file deleted from the server
- File matches an item? → (Reference read, no item yet) File stays and is tried again at every run
- File matches an item? → (No reference readable) File deleted without importing
- File stays and is tried again at every run → Moved to archive after the set days
What you need
An SFTP connection and a separate folder for the documents. The job processes every matching file in that folder, and archiving moves every old file in it.
File names that carry the reference, for example the invoice number. Agree with Bilendo how your file names are built, and when you upload, so that the job runs after the upload.
For Porsche companies: the API username and password and the country of your Porsche market. Your ERP import must also fill the document references of the items.
Setting it up
Bilendo sets up the import job, and the splitter if you need one, together with you. You choose one to three start hours a day, the document type, the matching and how long files are kept.
You see your import jobs under Settings > Technology > Media File Import Jobs (right Batch Import): name, document type, status, Last Imported at and Last Checked at. On Data Hub > Batch Import, the SFTP tab starts a check at once with Check Now (right Batch Import with write access).
Good to know
Keep your own copy. A file is deleted from the server after a successful import. A file from which no reference could be read is deleted as well, without importing anything.
Files that stay. If a reference was read but no published item matches yet, for example because the ERP import has not delivered the item, the file stays and is tried again at every run. After the archive period it moves to
archive. Rename it or move it back to try again.One document, several items. If the matched values are not unique, for example an invoice number without a customer number, a file is attached to several items. Ask Bilendo to add a value to the matching.
Bilendo cannot see files you never uploaded, files in other folders or documents that are missing in Porsche's document store.