Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Digizuite DAM integration service provides an API where integration endpoints can register for notifications regarding asset and metadata changes. We have made it easy to setup the connection between Sitecore and Digizuite. You registrer an url and your Sitecore instance will receive notifications from Digizuite whenever an asset changes. In Sitecore we have created a new controller, which is located at the following route [siteUrl]/damforsitecore/silo/update. This is the endpoint that receives notifications from Digizuite. An important thing to note here is, that the endpoint should be reachable by the Digizuite server. Otherwise, the notifications won't be sent. This is usually the case for developers on local environments.

let’s talk about what the controller does when it receives a notification. The data coming from Digizuite will be serialized in to an object of this type:

public class UpdateNotification
{ 
  public ChangeType ChangeType { get; set; }
  public ChangeData Data { get; set; }
}
    
public class ChangeData
{
  public int ItemId { get; set; }
  public int BaseId { get; set; }
}

The property ChangeType indicates whether it's an AssetChanged, MetafieldChanged, ComboValueChanged or TreeValueChanged. The DAM for Sitecore connector only support the event type AssetChanged. The following happens when we recive the AssetChanged event:

  1. Run the pipeline DFS.DigizuiteUpdateNotification

    1. Call Digizuite api to fetch the asset information.

    2. Save the asset in the asset silo (/sitecore/media library/Digizuite/Assets).

    3. Clear local asset cache.

    4. Send remove event to all CD servers and clear cache.

  • No labels