A one-pot synthetic strategy was developed using electrochemical methods to convert sulfonamides into N-sulfonylformamidines, followed by the direct functionalization of the C-H bond through electrochemical oxidation. Subsequently, modification was achieved for the first time by introducing azide groups via imide ions under Lewis acid catalysis, utilizing TMSN 3 as the nucleophilic reagent. This strategy is compatible with a wide range of functional groups, and its utility has been demonstrated through scale-up experiments and derivatization reactions.