Posted on May 11, 2013December 20, 2018Retrieving A Datastore Entity With A Key (or Kind Name & ID) Short code fragment that someone might find useful: retrieve an Entity if you know what the kind and entity ID/name are. Key key = KeyFactory.createKey("kind", "id/name"); try { Entity entity = DatastoreServiceFactory.getDatastoreService().get(key); } catch (EntityNotFoundException e) { //The entity wasn't found. Handle this exception. }