Plunet icon

Plunet

Get and Set Data for Plunet BusinessManager

Actions156

Files → Upload Document

AI-generated

Summary

Upload a document to Plunet, storing it in a folder identified by the selected folder type and main ID.

Inputs

  • folderType (required) — Select the folder type (e.g., Request Source, Quote Reference) that determines where the file will be stored. Each option corresponds to a specific entity such as Request, Quote, Order, etc.
  • mainID (required) — The numeric ID of the entity (Request ID, Quote ID, Order ID, etc.) associated with the selected folder type.
  • fileByteStream (required) — Base64‑encoded content of the file to upload.
  • filePathName (required) — File name with extension (e.g., 'specification.pdf') as it should appear in Plunet.
  • fileSize — Size of the file in bytes. If omitted, the node calculates it automatically from the byte stream.

Output shape

json

The node returns the raw JSON response from the Plunet API after the upload, which typically includes a success flag and any metadata about the stored document (such as its internal ID).

Examples

Example 1: Attach a specification PDF to a quote.

Set folderType to 'Quote Source (uses Quote ID)' (value 4), provide the quote’s ID in mainID, supply the Base64‑encoded PDF in fileByteStream, give it a name like 'spec.pdf' in filePathName, and optionally specify fileSize.

Discussion