onOffice icon

onOffice

onOffice custom node for n8n

File → Upload

AI-generated

Overview

This node uploads a file to the onOffice system, associating it with a specified relation type and related ID. It is useful for scenarios where users need to programmatically add files to addresses or estates within onOffice, such as uploading property images or documents linked to a specific estate or address.

Use Case Examples

  1. Uploading a contract document to an estate record.
  2. Adding a photo to an address entry.

Properties

Name Meaning
Relation Type Specifies the type of entity the file is related to, either an Address or an Estate.
Related ID The unique identifier of the related entity (address or estate) to which the file will be uploaded.
File Content The content of the file to be uploaded, typically encoded as a string.
Filename The name of the file being uploaded.

Output

JSON

  • fileId - The unique identifier of the uploaded file in the onOffice system.
  • status - The status of the upload operation, indicating success or failure.

Dependencies

  • Requires an API key credential for onOffice API authentication.

Troubleshooting

  • Ensure the Related ID corresponds to an existing entity in onOffice; otherwise, the upload will fail.
  • Verify that the file content is correctly encoded and not empty to avoid upload errors.
  • Check that the Relation Type matches the entity type of the Related ID to prevent mismatches.

Discussion