Skip to main content
New Participant
Aug 11, 2023 5:09 AM UTC
Question

How to receive Asset Event of Adobe XDM Event Model structure instead of AEM Event?

How to receive Asset Event of Adobe XDM Event Model structure instead of AEM Event?
XDM Event Model structure such as:

{
"@id": "82235bac-2b81-4e70-90b5-2bd1f04b5c7b",
"@type": "xdmCreated",
"xdmEventEnvelope:objectType": "xdmAsset",
"activitystreams:to": {
"xdmImsUser:id": "D13A1E7053E46A220A4C86E1@AdobeID",
"@type": "xdmImsUser"
},
"activitystreams:generator": {
"xdmContentRepository:root": "https://cc-api-storage.adobe.io/",
"@type": "xdmContentRepository"
},
"activitystreams:actor": {
"xdmImsUser:id": "D13A1E7053E46A220A4C86E1@AdobeID",
"@type": "xdmImsUser"
},
"activitystreams:object": {
"@type": "xdmAsset",
"xdmAsset:asset_id": "urn:aaid:sc:us:4123ba4c-93a8-4c5d-b979-ffbbe4318185",
"xdmAsset:asset_name": "example.jpg",
"xdmAsset:etag": "6fc55d0389d856ae7deccebba54f110e",
"xdmAsset:path": "/MyFolder/example.jpg",
"xdmAsset:format": "image/jpeg"
},
"activitystreams:published": "1970-01-01T01:00:00.000+01",
"@context": {
"activitystreams": "http://www.w3.org/ns/activitystreams#",
"xdmEventEnvelope": "https://ns.adobe.com/xdm/common/eventenvelope#",
"xdmAsset": "http://ns.adobe.com/xdm/assets/asset#",
"xdmImsUser": "https://ns.adobe.com/xdm/ims/user#",
"xdmContentRepository": "https://ns.adobe.com/xdm/content/repository",
"xdmCreated": "https://ns.adobe.com/xdm/common/event/created#"
}
}
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Employee
Aug 15, 2023 7:16 PM UTC

The Asset Events (in current format) are now surfaced via the Content Platform and we have migrated away from the old Shared Cloud based asset events (XDM event) long back to these Platform Events. Please refer our public doc (https://developer.adobe.com/events/docs/guides/using/asset-events/asset-events-landing/) on Asset Event for more details. 

Translate
karatleeAuthor
New Participant
Aug 16, 2023 12:06 PM UTC

Has the data structure changed before and after migration?

 

Translate
karatleeAuthor
New Participant
Aug 11, 2023 5:20 AM UTC
Now I receive an asset event with this structure, but what I expect is the Adobe XDM Event Model structure
{
"data": {
"xdmEntity": {
"event:resources": {
"event:action": "updated",
"event:updated": {
"repo:modifyDate": "2023-08-08T08:30:24.122Z"
},
"event:embedded": {
"storage:directoryType": "content",
"_links": {
{
"templated": true
}
],
{
}
],
{
}
],
{
"mode": "id"
},
{
"mode": "path"
}
],
{
"mode": "id",
"templated": true,
"repo:maxSingleTransferSize": 10485760,
"repo:minBlockTransferSize": 1
},
{
"mode": "path",
"templated": true,
"repo:maxSingleTransferSize": 10485760,
"repo:minBlockTransferSize": 1
}
],
{
"mode": "id",
"templated": true
},
{
"mode": "path",
"templated": true
}
],
{
"mode": "id",
"templated": true,
"assetId": "urn:aaid:sc:VA6C2:febf9f18-385a-5088-b444-c2856080f9d6"
},
{
"mode": "path",
"templated": true,
"assetId": "urn:aaid:sc:VA6C2:febf9f18-385a-5088-b444-c2856080f9d6"
}
],
{
"mode": "id",
"type": "application/json"
},
{
"mode": "path",
"type": "application/json"
}
],
{
"mode": "id",
"type": "application/json"
},
{
"mode": "path",
"type": "application/json"
}
],
{
"mode": "id",
"templated": true,
"type": "application/vnd.adobecloud.directory+json"
},
{
"mode": "path",
"templated": true,
"type": "application/vnd.adobecloud.directory+json"
}
],
{
"mode": "id"
},
{
"mode": "path"
}
],
}
},
"repo:assetId": "urn:aaid:sc:VA6C2:0d4e7xxx5-42b8-8027-0c7b9b50ec0b",
"repo:state": "ACTIVE",
"repo:createDate": "2023-08-08T08:30:24.122Z",
"repo:repositoryId": "urn:aaid:sc:Vxxx85a-5088-b444-c2856080f9d6",
"repo:name": "123",
"dc:format": "application/vnd.adobecloud.directory+json",
"repo:createdByClientId": "CCXWeb1",
"repo:ancestors": [
"urn:aaid:sc:VA6C2:febf9fxxx-5088-b444-c2856080f9d6",
"urn:aaid:sc:VA6C2:ac442cxxxa-43c9-93a7-1340f5a5d4a3",
"urn:aaid:sc:VA6C2:355cxxx4fdf-909a-6832f707ce40"
],
"storage:region": "VA6C2",
"repo:createdBy": "2C3B06xxx495C50@AdobeID",
"repo:modifiedBy": "2C3B0688649xxx95C50@AdobeID",
"repo:assetClass": "directory",
"repo:path": "/cloud-content/0808_1537/123",
"repo:createdByIpAddress": [
"xxx"
],
"storage:assignee": {
"id": "2C3B0688649Bxxx5C50@AdobeID",
"type": "user"
},
"storage:deviceCreateDate": "2023-08-08T08:30:24.122Z",
"repo:modifiedByClientId": "CCXWeb1",
"repo:modifyDate": "2023-08-08T09:00:17.171Z",
"storage:deviceModifyDate": "2023-08-08T09:00:17.171Z",
"repo:id": "urn:aaid:sc:VA6C2:0d4xxx3ef5-42b8-8027-0c7b9b50ec0b",
"repo:modifiedByIpAddress": [
"10.95.169.103"
]
},
"event:resourceGeneration": 72
},
"event:action": "updated",
"event:resourceGeneration": 1
}
},
"event:sequence": -1,
"event:repository": {
"repo:owner": {
"id": "2C3B068xxx0A495C50@AdobeID",
"type": "user"
}
}
}
},
"id": "98410a4f-2f57-49f1-ba15-74xxx85",
"source": "urn:uuid:urn:aaid:sc:VA6C2:febxxx385a-5088-b444-c2856080f9d6",
"specversion": "1.0",
"type": "com.adobe.platform.events.directory_updated",
"datacontenttype": "application/json",
"time": "2023-08-08T09:00:17.171Z",
"xactionid": "4f911dee-22fe-48ff-96b5-62042119691c-5-CoS-1",
"recipient": {
"userid": "2C3Bxxxx0930A495C50@AdobeID"
},
"dataschemaversion": "0.9",
"event_id": "f065d55d-d133-475a-a659-160410ef5821",
"recipient_client_id": "58xxxefcc431d96f027dc999ef81e"
}
Translate