Skip to main content
Level 2
Jul 9, 2025 7:27 PM UTC
Solved

How to upload a document to workfront? I don't have a "Related Record ID" but it requires one.

Using the Workfront module-Upload Document it requires a related Record ID BUT using the API you don't need that.

I don't have a related record ID, I just want to upload the file. How do you upload a file without that record ID?

Sven-iX
Sven-iXAccepted solution
Community Advisor
Jul 9, 2025 8:20 PM UTC

When you use the API directly and don't specify a relatedRecordID it will use the API user as related record.

 

You can verify this by using Fusion's ReadARecord module: If you select referenceObjID and referenceObjectName it will show your name/ID on those documents you "just" uploaded. 

 

So if you don't need to associate a doc with a business object such as project or task etc, you need to supply a user. 

2 replies

Sven-iX
Community Advisor
Sven-iXCommunity AdvisorAccepted solution
Community Advisor
Jul 9, 2025 8:20 PM UTC

When you use the API directly and don't specify a relatedRecordID it will use the API user as related record.

 

You can verify this by using Fusion's ReadARecord module: If you select referenceObjID and referenceObjectName it will show your name/ID on those documents you "just" uploaded. 

 

So if you don't need to associate a doc with a business object such as project or task etc, you need to supply a user. 

Translate
Rafal_Bainie
Community Advisor
Community Advisor
Jul 18, 2025 6:45 AM UTC

Sven is correct,

Document is a relative object in Workfront and doesn't exist on it's own. Therefore one of the fields is always not-empty:

taskID

issueID

userID

projectID

programID

portfolioID

if you don't know where to store document you can use your ID (userID) for the field related record ID, this is equivalent of opening Documents page and uploading there random document. Such doc gets by default assigned to you.
I hope this helps

Translate