Synthesis of a boron-containing amidoxime reagent and its application to synthesize functionalized oxadiazole and quinazolinone derivatives.