Single-pot template transformations of cyanopyridines on a Pd(II) centre: syntheses of ketoimine and 2,4-dipyridyl-1,3,5-triazapentadiene palladium(II) complexes and their catalytic activity for microwave-assisted Suzuki-Miyaura and Heck reactions.