Using DAM Assets in PM Workflows
This tutorial is exclusive to Aprimo Productivity Management
Before you begin developing, read about Aprimo Rate Limiting.
1. Retrieve the DAM Record ID of a DAM Asset on a Task
- Get Current Documents:
GET /api/tasks/{taskID}/documents- Check the
_embeddedattribute for all current documents.
- Check the
- Filter DAM Assets:
Look for objects withcategory: aprimodam. - Get DAM Record ID:
GET /api/digital-assets/{documentID}- The
damRecordIdattribute contains the DAM ID.
- The
2. Add an Aprimo DAM Asset to a Task Configured for a Digital Asset
-
Get File and DAM Record IDs:
Retrieve the file ID (record/[recordid]/files) and DAM record ID. -
Map DAM Asset:
POST /digital-assets/dam-mapping
{
"damRecordId": "'{1}'",
"assetTypeId": 401,
"damFileId": "'{2}'"
}
This returns an assetid and versionid needed for the next steps.
-
Add Asset to Project:
PUT /projects/{projectID}/digital-assets/{assetid} -
Retrieve Document ID:
GET /tasks/{taskID}/documents -
Attach Asset to Task:
PUT /tasks/{taskID}/document-uploads/{documentID}/upload-document
{
"versionId": "{versionId}"
}
3. Removing an Asset from a Task
Use the API to detach a file or Aprimo DAM document from a task.
-
Retrieve the Document ID:
GET /tasks/{taskID}/documents -
Retrieve the Version ID:
GET /tasks/{taskID}/document-uploads/{documentID}/uploaded-versions -
Remove the Asset:
DELETE /tasks/{taskID}/document-uploads/{documentID}/uploaded-versions/{versionID}- This removes the attachment or DAM asset from the task.