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 ?
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.
André Arnaud de Cal... 291,472 Super User 2024 Season 2
Martin Dráb 230,560 Most Valuable Professional
nmaenpaa 101,156