Using the File Sync Tool
This guide outlines how to use the File Sync tool in OneGov to import and attach files on an FTP site to records such as parcels.
Create a File Upload data type on the record to upload the files to:
If you already have a File Upload available on the record that you want to use for this, you can skip this set of instructions.
Click "Customizer" under the "User" tab
Click "Files" in the "Data Types" section near the top of the page
This section of the site contains the different file containing data types that are available to be used in the customizer section of the site (similar to the data types tab in the administration section of the site)
Check to see if there is a record here that will allow for multiple file uploads If there is no record, skip to the next step
Click "Modify" next to any records if there are some
Check that on step 2: "Basic 2" that the fields are set as follows:
"Should each field of this type accept multiple uploads" = yes
"Should each field of this type restrict uploads to certain types like images or PDFs" = no
If none of the existing records match the needed settings, create a new one by clicking "Add"
Step 1: "Basic"
Name the data type accordingly
Ex. File Attachments
Choose "Upload Files + List Uploaded Files"
Step 2: "Basic 2"
"Should each field of this type accept multiple uploads" = yes
"Should each field of this type restrict uploads to certain types like images or PDFs" = no
"Save & Exit"
Click "Tables" next to the zone that contains the records you want to attach the files to
If you are attaching files to Parcels, this zone should be named something along the lines of "P.I.M." or "Parcel Management"
Click "Sections" next to the records that holds the records you want to attach the files to
Click "Fields" next to the section that you want to hold the files in
Click "Add"
Step 1: "Basic"
Name: Name the new field accordingly
Data Type: Choose "File"
Access Control: Choose who you want to have access to view and download files from this field.
Step 2: "Basic #2"
File Type: Choose the file type
Step 3: " Fields Options"
Skip to Step 6: "Review & Implement"
Click "Implement"
Click "Save & Exit"
Set up the File Sync:
The File Sync feature requires that the name of the file begin with or contain some data that can be matched on the record it should be added to. The most common example would be the name of the file starting with a parcel number. Make sure the file names follow this naming structure before running the file sync (Step 3g below).
Click "Customizer" under the "User" tab
Click "File Sync"
Click "Add"
Step 1: "Basic"
Name of Job: Name this accordingly
Source Type: Currently FTP is the only option available
Step 2: "Source"
Source: Enter the url for the FTP site. (any subdirectories will cause errors)
FTP Port: If you need to specify a port, do so here, otherwise leave at the default
FTP TImeout: Set the timeout if needed otherwise, leave at the default
FTP Username: Set a username is necessary
FTP Password: Set a password if necessary
FTP Passive Mode: Leave set to "Yes" unless otherwise needed
FTP Clear: If you want the files to be deleted from the FTP site after being synced, set this to "yes" otherwise leave at "No"
Step 3: "Target Table"
Target Table: Choose which table you want to add the files to
Step 4: "Match Field"
Match Field: Choose which field in the table contains the data that matches the name of the file
Match Method: Choose if the file name begins with the matching value or contains the matching value
Match Method is Case Sensitive: Select whether or not the field and file name should be checked with case sensitivity
Match Only Valid Records: Choose whether or not the sync should also include invalidated records when matching files to the records
Match Only Once: If two or more records in your target list match a file name, with Match Only Once set to "Yes", only the first record will get it.
Step 5: "Target Field"
Choose which field the files should be saved into on the record
Step 6: "Schedule"
If this sync should be run on a regular basis, you can set up that schedule here
Step 7: "Review and Execute"
On the initial setup of this sync, it can be a good idea to test if the sync is set up properly before running it in full. There are three options on this step:
Test and View Details: Will not add the files to the record. Will only test the sync and display results once finished
Execute and View Details: Will add the files to the record. Will display results once finished
Execute in Background: Will add the files to the record. Will not display results
Please note: This sync may take a while depending on how many records are being added. Only start one sync at a time.
Check for errors and sync results
Go to "Customizer" under the USER drop down
Click on the RESULTS tab (in the "Jobs" section)
Review results and errors from any sync
Related articles