Infer entity ids on various platforms