Hi,
I want to remove a picture in item via functions and i'm writing this.
The problem is, even if the picture deleted from the mediaset field, it wasn't deleted in tenant media. What's the connection between this and the tenant media ?
Be careful. if you use item.picture.Remove... records in Tenant Media and Tenant Media Thumbnails tables will remain - and you will lose link to original item, so you won't be able to distinguish, what tenant media record belongs to which record in database.
The only completely working way seems to be:
CLEAR(Item.Picture);
Item.MODIFY()
You can retrieve the Tenant Media record connected to the picture field by doing:
TenantMedia.Get(Item.Picture.Item(index)) and then delete it.
Sohail Ahmed
858
YUN ZHU
773
Super User 2025 Season 1
Mansi Soni
569