Disclosed are compounds of Formula (I), or a salt thereof, wherein: X is CR4 or N; Y is CR4 or N, provided that Y is N only if X is N; R1 is Formulae (A) or (B); each W is independently NR1b or O; Z is a bond or CHR1d; and R1, R2, R3, R4, L1, R1a, R1b, R1c, and n are defined herein. Also disclosed are methods of using such compounds as inhibitors of ROMK, and pharmaceutical compositions comprising such compounds. These compounds are useful in treating cardiovascular diseases.