In 1778 he was the agent through whom Maria Theresa entered into direct negotiations with Frederick the Great, in order to stop the Bavarian War. In 1780 he was Austrian envoy in Warsaw, but in 1783 he applied for leave and satisfied his hankering after France by living for four years in Paris.