Custom resources

Adobe Campaign comes with a pre-defined data model, where data is defined through different resources. You can enrich the data model that is provided by extending the resources to add your own custom fields or custom tables, such as purchase or product tables.

Custom resources are accessible through APIs using the /profileAndServicesExt endpoint, and the custom resource name.

https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/<resourceName>/

NOTE

For resources that are not out-of-the-box, always use the “cus” prefix before the resource’s name.

You can perform any operation with custom resources, as long as they are linked to the Profile table. For example, let’s consider the tables structure below:

alt text

In that case, all resources from the Transaction, TransactionDetails and Product tables are available as long as they are linked to the Profile table.


Sample request

Sample GET request to access the extended profileAndServicesExt resource.


-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \

It returns the list of all linked custom resources. You can then use the resources URLs to perform any API task described in this documentation.


{
"apiName": "resourceType",
"cusProduct": {
        "content": ...,
        "data": "/profileAndServicesExt/cusProduct/",
        "help": "Product",
        "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/cusProduct/metadata",
        "name": "cusProduct",
        "type": "collection"
    },
"cusTransaction": {
        "content": ...,
        "data": "/profileAndServicesExt/cusTransaction/",
        "help": "Product",
        "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/cusTransaction/metadata",
        "name": "cusProduct",
        "type": "collection"
    },
    ...
}

For more information on data model extension, refer to the Campaign documentation:

On this page

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now