Visible light promoted the oxidation of compounds 1 to amides 2 which were easily transferred to compounds 12.