appkey to entid