Get the current contextlevel and instanceid