St Pat's will play Galway United at home in the Second Round of the 2017 Irish Daily Mail FAI Cup.
The fixture will take place in two weeks time - date to be confirmed.
Second Round Draw
Bangor Celtic v Longford Town
Bluebell United v Cabinteely
Cork City v Athlone Town
Crumlin United v Dundalk
Drogheda United v Cobh Wanderers
Limerick v Finn Harps
St Patrick's Athletic v Galway United
Shelbourne v Shamrock Rovers
The Quarter-Final draw will take place on Monday, August 28.