Overview

  • The TMF667 API provides a standardized client interface to manage documents. This API manages the metadata related to a document.

In general, we can consider the various use cases listed based on the operation you want to perform.

Starting from the Winter ’27 release, only the Direct Access option will be supported. The MuleSoft gateway option will be deprecated, and customers must update their integrations to use the Connect/Apex REST endpoints for continued access to the inbound APIs.

Important

Assumptions 

It is assumed that you have completed the following.

Sequence of Operations 

Following block diagram provides a sequence of operations involved. Sequence

TMF667 v4 Use Cases 

I want to
Request Type
Example URL
Retrieve and display details of a particular document.
GET by ID{https://MyDomainLoginUrl}//services/data/v63.0/connect/comms/document/v4/document/contentVersionId

NOTE: 
For invalid product order ID, you will receive HTTP 404 error.
Based on the provided filter values, retrieve and display details of a particular document ID.
GET List by Filters
{https://MyDomainLoginUrl}/services/data/v63.0/connect/comms/document/v4/document?name=Testing

NOTE: 
The requested fields will be part of output, if they have value.
List all the documents present in the system.
GET List
{https://MyDomainLoginUrl}/services/data/v63.0/connect/comms/document/v4/document
List all the documents present in the system based on the provided field values.
GET List by Fields
{https://MyDomainLoginUrl}/services/data/v63.0/connect/comms/document/v4/document?fields=name,status,description,creationdate,lastupdate,documenttype

NOTE: 
The requested fields will be part of output, if they have value.
List documents based on criteria, limit the number of product orders to a maximum of specified limit, and display results from the page specified by offset.
GET List by Limit and Offset
{https://MyDomainLoginUrl}/services/data/v63.0/connect/comms/document/v4/document?pageLimit=2&offset=3
Create a new document by providing the required details.
POST
{https://MyDomainLoginUrl}/services/data/v63.0/connect/comms/document/v4/document

GET by ID 

Consider you want to retrieve details of a particular product order. For example, document ID = 068xx0000004CQmAAM.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document/068xx0000004CQmAAM

Sample Response 

1{
2    "id": "068xx0000004CQmAAM",
3    "href": "/connect/comms/document/v4/document/068xx0000004CQmAAM",
4    "name": "Testing 2",
5    "documentType": "LINK",
6    "description": "sample description",
7    "status": "PUBLISHED - PRIVATE",
8    "creationDate": "Wed Oct 23 11:47:10 GMT 2024",
9    "lastUpdate": "Wed Oct 23 11:47:11 GMT 2024",
10    "@type": "Document",
11    "contentDocumentId": "069xx0000004CIiAAM",
12    "attachment": [
13        {
14            "attachmentType": "url",
15            "url": "https://www.amazon.co.uk/via-667-post"
16        }
17    ]
18}

GET List by Filters 

Consider you want to retrieve details documents present in the system based on the applied filter.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document?name=Testing

Sample Response 

1[
2    {
3        "attachment": [
4            {
5                "attachmentType": "url",
6                "url": "https://www.amazon.co.uk/via-667-post"
7            }
8        ],
9        "documentType": "LINK",
10        "@type": "Document",
11        "lastUpdate": "Wed Oct 23 11:15:08 GMT 2024",
12        "name": "Testing",
13        "description": "sample description",
14        "id": "068xx0000004CDsAAM",
15        "href": "/connect/comms/document/v4/document/068xx0000004CDsAAM",
16        "creationDate": "Wed Oct 23 11:15:08 GMT 2024",
17        "status": "PUBLISHED - PRIVATE",
18        "contentDocumentId": "069xx0000004CIiAAM",
19    },
20    {
21        "attachment": [
22            {
23                "attachmentType": "url",
24                "url": "https://www.amazon.co.uk/via-667-post"
25            }
26        ],
27        "documentType": "LINK",
28        "@type": "Document",
29        "lastUpdate": "Wed Oct 23 11:20:25 GMT 2024",
30        "name": "Testing",
31        "description": "sample description",
32        "id": "068xx0000004CFUAA2",
33        "href": "/connect/comms/document/v4/document/068xx0000004CFUAA2",
34        "creationDate": "Wed Oct 23 11:20:25 GMT 2024",
35        "status": "PUBLISHED - PRIVATE",
36        "contentDocumentId": "069xx0000004CIiAAN",
37    }
38]

GET List 

Consider there are multiple documents in the system and you want to list all of them.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document

Sample Response 

1[
2    {
3        "attachment": [
4            {
5                "attachmentType": "url",
6                "url": "https://www.amazon.co.uk/via-667-post"
7            }
8        ],
9        "documentType": "LINK",
10        "@type": "Document",
11        "lastUpdate": "Wed Oct 23 11:15:08 GMT 2024",
12        "name": "Testing",
13        "description": "sample description",
14        "id": "068xx0000004CDsAAM",
15        "href": "/connect/comms/document/v4/document/068xx0000004CDsAAM",
16        "creationDate": "Wed Oct 23 11:15:08 GMT 2024",
17        "status": "PUBLISHED - PRIVATE",
18        "contentDocumentId": "069xx0000004CIiAAM",
19    },
20    {
21        "attachment": [
22            {
23                "attachmentType": "url",
24                "url": "https://www.amazon.co.uk/via-667-post"
25            }
26        ],
27        "documentType": "LINK",
28        "@type": "Document",
29        "lastUpdate": "Wed Oct 23 11:20:25 GMT 2024",
30        "name": "Testing",
31        "description": "sample description",
32        "id": "068xx0000004CFUAA2",
33        "href": "/connect/comms/document/v4/document/068xx0000004CFUAA2",
34        "creationDate": "Wed Oct 23 11:20:25 GMT 2024",
35        "status": "PUBLISHED - PRIVATE",
36        "contentDocumentId": "069xx0000004CIiAAN",
37    }
38]

GET List by Fields 

Consider you want to retrieve all the documents present in the system with provided field values.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document?fields=name,status,description,creationdate,lastupdate,documenttype

Sample Response 

1[
2    {
3        "@type": "Document",
4        "lastUpdate": "Tue Oct 22 09:41:11 GMT 2024",
5        "name": "Test Document",
6        "id": "068xx0000004C92AAE",
7        "href": "/connect/comms/document/v4/document/068xx0000004C92AAE",
8        "creationDate": "Tue Oct 22 09:41:11 GMT 2024",
9        "status": "PUBLISHED - PRIVATE"
10    },
11    {
12        "@type": "Document",
13        "lastUpdate": "Wed Oct 23 05:05:46 GMT 2024",
14        "name": "bazel org.postman_environment_one",
15        "id": "068xx0000004CAeAAM",
16        "href": "/connect/comms/document/v4/document/068xx0000004CAeAAM",
17        "creationDate": "Wed Oct 23 05:05:46 GMT 2024",
18        "status": "PUBLISHED - PRIVATE"
19    },
20    {
21        "@type": "Document",
22        "lastUpdate": "Wed Oct 23 11:06:29 GMT 2024",
23        "name": "Testing 1",
24        "description": "sample description",
25        "id": "068xx0000004CCGAA2",
26        "href": "/connect/comms/document/v4/document/068xx0000004CCGAA2",
27        "creationDate": "Wed Oct 23 11:06:27 GMT 2024",
28        "status": "PUBLISHED - PRIVATE"
29    }
30]

GET List by Limit and Offset 

Consider you want to retrieve list of documents and apply required pagination query.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document?pageLimit=2&offset=3

NOTE: This request will display a list of records with a maximum of 2 records displayed from 3rd record.

Sample Response 

1[
2    {
3        "attachment": [
4            {
5                "attachmentType": "url",
6                "url": "https://www.amazon.co.uk/via-667-post"
7            }
8        ],
9        "documentType": "LINK",
10        "@type": "Document",
11        "lastUpdate": "Wed Oct 23 11:15:08 GMT 2024",
12        "name": "Testing",
13        "description": "sample description",
14        "id": "068xx0000004CDsAAM",
15        "href": "/connect/comms/document/v4/document/068xx0000004CDsAAM",
16        "creationDate": "Wed Oct 23 11:15:08 GMT 2024",
17        "status": "PUBLISHED - PRIVATE",
18        "contentDocumentId": "069xx0000004CIiAAM",
19    },
20    {
21        "attachment": [
22            {
23                "attachmentType": "url",
24                "url": "https://www.amazon.co.uk/via-667-post"
25            }
26        ],
27        "documentType": "LINK",
28        "@type": "Document",
29        "lastUpdate": "Wed Oct 23 11:20:25 GMT 2024",
30        "name": "Testing",
31        "description": "sample description",
32        "id": "068xx0000004CFUAA2",
33        "href": "/connect/comms/document/v4/document/068xx0000004CFUAA2",
34        "creationDate": "Wed Oct 23 11:20:25 GMT 2024",
35        "status": "PUBLISHED - PRIVATE",
36        "contentDocumentId": "069xx0000004CIiAAN",
37    }
38]

POST 

Consider you want to create a new document.

NOTE:

  • Mandatory attributes are - name, attachment.url.

Sample URL 

https://vlocity-1f5-dev-ed.develop.my.salesforce.com/services/data/v63.0/connect/comms/document/v4/document

Sample Request 

1{
2    "name": "Testing 2",
3    "description": "sample description",
4    "attachment": [
5                {
6                    "url": "<url-of-the-actual-document-stored-somewhere>"
7                }
8            ]
9}

Sample Response 

1{
2    "id": "068xx0000004CSOAA2",
3    "href": "/connect/comms/document/v4/document/068xx0000004CSOAA2",
4    "name": "Testing 2",
5    "documentType": "LINK",
6    "description": "sample description",
7    "status": "PUBLISHED - PRIVATE",
8    "creationDate": "Thu Oct 24 07:39:51 GMT 2024",
9    "lastUpdate": "Thu Oct 24 07:39:51 GMT 2024",
10    "@type": "Document",
11    "contentDocumentId": "069xx0000004CIiAAM",
12    "attachment": [
13        {
14            "attachmentType": "url",
15            "url": "<url-of-the-actual-document-stored-somewhere>"
16        }
17    ]
18}