When Jim fooled Dwight into thinking an actor friend of his has actually been Jim the entire time:
Episode: Season 9, Episode 3, "Andy's Ancestry"