Sets item id when known.