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 ?
procedure DeleteItemPicture(parItemNo: Code[20]) ReturnVal: Text
var
Item: Record item;
B64cu: Codeunit "Base64 Convert";
TM: Record "Tenant Media";
MediaGUID: Guid;
begin
item.get(parItemNo);
if item.picture.Remove(item.picture.Item(1)) then begin
item.modify;
exit('delete done');
end else
exit('delete can not be done');
end;