One ranking of methylating agents is . Methyl triflate will alkylate many functional groups which are very poor nucleophiles such as aldehydes, amides, and nitriles.
Methyl triflate is a potent alkylating agent that can react with various functional groups, including those that are typically poor nucleophiles such as aldehydes, amides, and nitriles.