Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

We do not recommend that you access raw fields on the item directly, we recommend to use our api to retrieve metadata.

4.1 Accessing metadata

On each of the three DFS field types AssetAssetLink and AssetList, have a property called AssetMetadata which exposes the metadata of an asset. AssetMetadata model contains the following properties:

Property name

Type

Description

Name

String

The title of the asset.

Description

String

The description of the asset.

AssetId

String

This is a unique id coming from the DAM Center.

AssetTypeId

String

This is a unique id, representing what kind of type the asset is. Ex. images equals 4 and video equals 1 etc. This id can be mapped to an item in this location:system/modules/Digizuite/[silo id]/AssetTypeRoot

AssetTypeName

String

The name of the asset type.

ImportedBy

String

The name of the user who uploaded the asset.

CreatedDateTime

DateTime

The upload date.

VideoLength

String

Is the asset being of type video, this is the length of the video.

DynamicMetadata

IDictionary<string, string>

This dictionary will contain all the dynamic metafield from the DAM Center. The key is the MetafieldId of the metafield. All metafields can be found either in DAM Center or at this location in Sitecore:system/modules/Digizuite/[silo id]/MetaGroupRoot.

3.5.1 How to retrieve metadata for the field type Asset

...