One-pot synthesis of novel tert-butyl-4-substituted phenyl-1H-1,2,3-triazolo piperazine/piperidine carboxylates, potential GPR119 agonists.