Candidate Obama was on the Senate Foreign Relations committee so he got heads up that way.
What about candidates Bush (2000) and Clinton (1992)?