a new functionalized resin represented by the general formula was derived from polyallylamine . ## str1 ## [ wherein ; x represents the general formula -- nhco . sub . l }. sub . t , n ≧ 10 , 0 & lt ; j & lt ; 1 , u = 1 or 2 , and m = 1 or 2 , with the proviso that t and m are not simultaneously 0 ]. the functionalized resin is preferably used for recovering heavy metals in waste water and for optionally dissolving amino acids .