David Harvie is a Solicitor Advocate and joined the Crown Office and Procurator Fiscal Service, following a spell in private practice, in 1996. He worked as a Procurator Fiscal Depute in Paisley until 1999, when he was seconded to the Lockerbie criminal trial team until after the trial, when, after a brief spell in Policy, he was promoted to Principal Depute, Aberdeen.
In 2001 he was seconded to the Foreign and Commonwealth Office.
He returned to Crown Office in 2004, where he became Deputy, then Head of the National Casework Division with responsibility for Organised Crime, Financial Crime and Proceeds of Crime cases throughout Scotland.
In 2008, David was promoted to District Procurator Fiscal, Edinburgh and East Lothian.
In August 2010 he was appointed as Area Procurator Fiscal for Central.
In May 2011, David was appointed Interim Head of East Federation.
He was promoted to Director of Serious Casework and Procurator Fiscal North of Scotland in July 2011. He took up his previous post as Procurator Fiscal for the West of Scotland in April 2014.
He was promoted to Crown Agent on 4 April 2016.