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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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.
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.
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