Synthesis of isomeric 3-oxadiazolyl/triazolyl morpholines was performed based on a common intermediate on the gram scale. The target compounds were designed as novel scaffolds for the medicinal chemistry. The key reaction was an electrochemical CH-oxidation of N-Boc morpholine.