By acylation of metoclopramide (I) with 2-(4-chlorophenoxy)acetic acid (II) by means of POCl3 in refluxing chloroform.