I have created an ECL provider for Fredhopper in my provider, Now I want to store some metadata from the external content in the ecl component. For that I have created below event System code

EventSystem.SubscribeAsync(SetOrUpdateMetadataMM, EventPhases.TransactionCommitted);

private void SetOrUpdateMetadata(Component subject, EventArgs args, EventPhases phase)
// Code to update the component metadata from external metadata field

It is now working fine. But is it possible to call that event on ecl component create? Please suggest.

1 Answer 1


The event will be the same component save however for that event to work on ecl component create, check for following conditions:

component.BinaryContent != null && component.BinaryContent.MultimediaType.MimeType == "application/externalcontentlibrary"

If these conditions evaluate to true that means it is ecl component.

  • Thanks for the answer. But my question is little different - Commented Apr 7, 2015 at 16:08
  • is it possible to call that event at the time of component creation. Now I am calling it for Component, CheckInEventArgs. but I want to call at the time of component create ??? please suggest Commented Apr 7, 2015 at 16:14
  • What exactly is your question then? If you want to trigger an event when the item is created outside of Tridion, then it would have to be in Fredhopper
    – Nuno Linhares
    Commented Apr 7, 2015 at 16:20
  • 1
    You can use Save instead of CheckIn and you can use Pre instead of Post...
    – Nuno Linhares
    Commented Apr 7, 2015 at 18:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.