Skip to main content

Upload documents with Document Loader

Upload documents from a folder on your computer to employee records.

R
Written by Robert Martin

As a PeopleHR administrator, you can use the external Document Loader tool to upload documents from a folder on your computer to employee records.

Alternatively, you can upload documents in bulk with a comma-separated values (CSV) file in the Advanced Document Loader tool.


Permissions

You set document permissions in your application programming interface (API) key and through folder names:

  • Your API key has two security flags for all document endpoints, EmployeeAccess and ManagerAccess. Both are true by default.

  • Name folders in the format {Category} - {Permissions}.

  • Each file name becomes the document name, and the document date is the date you load it.

  • Give the Reports folder, where the tool writes its log file, read-write permissions.

The tool picks up all subfolders and applies these permission rules:

Folder name

Permission rules

Benefits

  • Category: Benefits.

  • Access flags:

    • EmployeeAccess: True.

    • ManagerAccess: True.

Benefits - Manager

  • Category: Benefits.

  • Permissions: Manager.

  • Access flags:

    • EmployeeAccess: False.

    • ManagerAccess: True.

Benefits - Staff

  • Category: Benefits.

  • Permissions: Staff.

  • Access flags:

    • EmployeeAccess: True.

    • ManagerAccess: False.

Benefits - Staff & Manager

  • Category: Benefits.

  • Permissions: Staff and Manager.

  • Access flags:

    • EmployeeAccess: True.

    • ManagerAccess: True.

Custom
​
Example: Benefits - none

  • Category: Benefits.

  • Access flags:

    • EmployeeAccess: False.

    • ManagerAccess: False.

  • Permission: Use other words than staff or manager when replacing none in this example.


Set up the Document Loader tool

To set up the Document Loader tool:

  1. Download the Document Loader tool.

  2. Find the file on your computer.

  3. Right-click the file, then select Run as Admin.

    📌 Note: You can run the tool in interactive or silent mode:

    • To use an API key, run it interactively.

    • To run the program silently, use the following command from the command prompt: dataloader.exe -load c:\folderpath

  4. Create an API key that includes all document endpoints.

  5. While the tool is running, click the Settings icon, then enter your API key.

  6. Click Browse.

    📌 Note: You can now view a root folder containing folders for each employee.

    image.png
  7. Name each folder in the root folder Employee name - PeopleHR Employee ID, such as Fred Bloggs - PW35.

Did this answer your question?