AI OnAI Off
I think the list needs to contain at least one item.
var mediaLinks = new MediaReferenceList<MediaReference>(); mediaLinks.Add(new MediaReference { Id = 1 }); if (mediaLinks.Any()) { product.Images = mediaLinks; }
Hi
I am creating pages programmatically that has Image Vault MediaReferenceList property like this:
Creating product:
var product = (Product)contentRep.GetDefault(ContentReference.StartPage).CreateWritableClone();
product.Images = new MediaReferenceList();
product.Images is always null no matter what.
Thanks
/ Johan