Synthesis of novel heterocyclic derivatives of 1-amino-3-(3-(5-((4-phenylpiperazin-1-yl)methyl)-1,3,4-oxadiazol-3-yl)phenoxy)propan-2-ol is focused on specific piperazine and piperidine derivatives of 1,3,4-oxadiazole. These compounds are a distinguished motif for biological studies. An effective piperazine and piperidine derivatives methodology on 1,3,4,-oxadiazole substrates has been developed. This pathway along with good yields and clean reactions has a broad substrate scope. This pathway provides new biologically useful moieties that can further be investigated for their applicability.