 Dulles served as the chief foreign policy adviser to Thomas E. Dewey, the Republican presidential nominee in 1944 and 1948.He also helped draft the preamble to the United Nations Charter and served as a delegate to the United Nations General Assembly.In 1949, Dewey appointed Dulles to fill the Senate vacancy caused by the resignation of Sen. Robert F. Wagner.