N.Y. Civil Practice Law & Rules § 203
5. the summons is delivered to the sheriff of that county outside the city of New York or is filed with the clerk of that county within the city of New York in which the defendant resides, is employed or is doing business, or if none of the foregoing is known to the plaintiff after reasonable inquiry, then of the county in which the defendant is known to have last resided, been employed or been engaged in business, or in which the cause of action arose; or if the defendant is a corporation, of a county in which it may be served or in which the cause of action arose; provided that: