Skip to content

ProjectWise - Add File ​

Uploads a local file to a specified folder in ProjectWise.

Purpose ​

Use this task to publish a file into ProjectWise as part of an automated workflow — for example, uploading a generated PDF, a converted export, or a file received from an external system. The task uploads the file and returns the newly created document object.

Service Account ​

Requires a Bentley ProjectWise service account.

Inputs ​

FieldTypeRequiredDescription
Local File Full PathTextYesThe full local path to the file to upload. Typically sourced from a previous task's LocalFilePath output or a file operation task.
Destination FolderTextYesThe folder GUID or WSG path for the target folder in ProjectWise.
Document NameTextNoThe name to give the document in ProjectWise. If left blank, the file's original filename is used.
CommentTextNoAn optional check-in comment to attach to the document.

Outputs ​

NameDescription
DocumentThe PWInstance object for the newly created document, containing all WSG properties assigned at upload.
DocumentIdThe WSG instance ID (GUID) of the newly created document.

Tentech