Getting preapproved for a mortgage comes up as a hard inquiry on your credit report. Though a hard pull is considered a negative mark on your credit report, it affects your score for no more than a year, and drops off your report entirely after two.