A series of ester formylhydrazones 2 were synthesized from the reactio
n of alkyl imidate hydrochlorides 1 with formylhydrazine. Treatment of
2 with hydrazine hydrate, ethyl carbazate and tert-butyl carbazate le
d to the formation of 3-alkyl-4-amino-, 3-alkyl-4-ethoxycarbonylamino-
and lkyl-4-tert-butoxycarbonylamino-4H-1,2,4-triazoles 3-5, respectiv
ely. Reaction of compounds 2 with formylhydrazine gave N,N'-diformylhy
drazine 6. Compounds 2 were reacted with 2,5-dimethoxytetrahydrofuran
to afford 3-alkyl-4-(1H-pyrrol-1-yl)-4H-1,2,4-triazoles 8.